diff options
Diffstat (limited to 'src/popup.ts')
-rw-r--r-- | src/popup.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/popup.ts b/src/popup.ts index e1e5757f..f954f168 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -19,7 +19,7 @@ import { VoteResponse, } from "./messageTypes"; import { showDonationLink } from "./utils/configUtils"; -import { AnimationUtils } from "./utils/animationUtils"; +import { AnimationUtils } from "../maze-utils/src/animationUtils"; import { shortCategoryName } from "./utils/categoryUtils"; import { localizeHtmlPage } from "../maze-utils/src/setup"; import { exportTimes } from "./utils/exporter"; @@ -465,8 +465,8 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> { return; } - //if request is undefined, then the page currently being browsed is not YouTube - if (request != undefined) { + // if request has no field other than message, then the page currently being browsed is not YouTube + if (request.found != undefined) { //remove loading text PageElements.mainControls.style.display = "block"; if (request.onMobileYouTube) PageElements.mainControls.classList.add("hidden"); @@ -490,6 +490,8 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> { PageElements.issueReporterImportExport.classList.remove("hidden"); } + } else { + displayNoVideo(); } //see if whitelist button should be swapped |