Added desktop app link to settings

This commit is contained in:
Eduard Urbach 2017-10-01 08:06:43 +02:00
parent 1ced81352f
commit b45af0eaf9
2 changed files with 11 additions and 0 deletions

View File

@ -101,6 +101,12 @@ component Settings(user *arn.User)
Icon("chrome")
span Get the Chrome Extension
.widget-input
label Desktop App:
button.action(data-action="installApp", data-trigger="click")
Icon("desktop")
span Get the Desktop App
.widget-input
label Android App:
a.button(href="https://www.youtube.com/watch?v=opyt4cw0ep8", target="_blank", rel="noopener")

View File

@ -306,4 +306,9 @@ export function removeAnimeFromCollection(arn: AnimeNotifier, button: HTMLElemen
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'.")
}