Refactor actions
This commit is contained in:
12
scripts/Actions/Install.ts
Normal file
12
scripts/Actions/Install.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { AnimeNotifier } from "../AnimeNotifier"
|
||||
|
||||
// Chrome extension installation
|
||||
export function installExtension(arn: AnimeNotifier, button: HTMLElement) {
|
||||
let browser: any = window["chrome"]
|
||||
browser.webstore.install()
|
||||
}
|
||||
|
||||
// Desktop app installation
|
||||
export function installApp() {
|
||||
alert("Open your browser menu > 'More tools' > 'Add to desktop' and enable 'Open as window'.")
|
||||
}
|
Reference in New Issue
Block a user