Refactor actions

This commit is contained in:
2017-10-17 11:27:15 +02:00
parent 56815fcb22
commit d65f3fd7bb
16 changed files with 450 additions and 429 deletions

View 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'.")
}