Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

prevent potential runtime errors.. #540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 8, 2024

  1. prevent potential runtime errors..

    if (video) video.volume = 0;
    if (video) video.pause();
    if (video) video.remove();
    
    can be written as 
        if (video) {
            video.volume = 0;
            video.pause();
            video.remove();
        }
    to ensure it does not fail when video is null.
    
    ****    ****    ****    ****    ****    ****    ****    ****    ****    ****    ****
    qw87rt authored Jun 8, 2024
    Configuration menu
    Copy the full SHA
    780b61c View commit details
    Browse the repository at this point in the history