-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start starting/stopping indicator, reload indicator on status changes (…
…#168) * re-load unit status * lint
- Loading branch information
1 parent
23edfef
commit b2842ef
Showing
3 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { detect } from "detect-browser" | ||
import { detect } from "detect-browser"; | ||
import { error } from "@/stores/alerts"; | ||
|
||
const SUPPORTED_BROWSERS = [ | ||
"chrome", | ||
"chromium-webview", | ||
] | ||
const SUPPORTED_BROWSERS = ["chrome", "chromium-webview"]; | ||
|
||
function checkBrowserSupport(): boolean { | ||
const browser = detect(); | ||
if (browser && SUPPORTED_BROWSERS.includes(browser.name)) { | ||
return true | ||
return true; | ||
} | ||
error(`Your browser (${browser?.name}) is not supported`, `Please re-open this page using Google Chrome: https://www.google.com/chrome/ | ||
error( | ||
`Your browser (${browser?.name}) is not supported`, | ||
`Please re-open this page using Google Chrome: https://www.google.com/chrome/ | ||
Track support for other browsers by subscribing to this issue: https://github.com/bitsy-ai/printnanny-os/issues/281`) | ||
return false | ||
Track support for other browsers by subscribing to this issue: https://github.com/bitsy-ai/printnanny-os/issues/281` | ||
); | ||
return false; | ||
} | ||
|
||
export { checkBrowserSupport } | ||
export { checkBrowserSupport }; |