refactor: modals (#1720)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Ilya
2021-06-15 13:18:38 +05:00
committed by GitHub
parent 7cbb61bdf8
commit 5fe8fce89d
9 changed files with 38525 additions and 175 deletions

View File

@@ -185,14 +185,6 @@ export default {
}
},
async mounted() {
this._keyListener = function (e) {
if (e.key === "Escape") {
e.preventDefault()
this.showExtensions = this.showShortcuts = this.showSupport = false
}
}
document.addEventListener("keydown", this._keyListener.bind(this))
// Initializes the PWA code - checks if the app is installed,
// etc.
this.showInstallPrompt = await intializePwa()
@@ -277,9 +269,6 @@ export default {
// }, 5000)
// }
},
beforeDestroy() {
document.removeEventListener("keydown", this._keyListener)
},
methods: {
nativeShare() {
if (navigator.share) {