diff --git a/src/content/components/extension/FullscreenViewer.ts b/src/content/components/extension/FullscreenViewer.ts index 5c7eb3e..4169e3f 100644 --- a/src/content/components/extension/FullscreenViewer.ts +++ b/src/content/components/extension/FullscreenViewer.ts @@ -412,7 +412,7 @@ export class FullscreenViewer extends BaseComponent { } #togglePopupVisibility(maybeState: boolean | undefined = undefined) { - if (typeof maybeState === 'undefined') { + if (maybeState === undefined) { const isHidden = this.#tagsPopupElement.classList.toggle(FullscreenViewer.#collapsedPopupState); void FullscreenViewer.#preferences.fullscreenViewerPopupShown.set(!isHidden); return; diff --git a/src/content/deps/amd.ts b/src/content/deps/amd.ts index 1ced3ee..f3e7824 100644 --- a/src/content/deps/amd.ts +++ b/src/content/deps/amd.ts @@ -38,7 +38,7 @@ amdLite.define = (name, dependencies, originalCallback) => { // Workaround for the entry script not returning anything causing AMD-Lite to send warning about modules not // being loaded/not existing. - return typeof callbackResult !== 'undefined' ? callbackResult : {}; + return callbackResult !== undefined ? callbackResult : {}; }); // Schedule the auto run on the next available frame. Firefox and Chromium have a lot of differences in how they