Merge branch 'master' into update-proxy-info

This commit is contained in:
Liyas Thomas 2020-02-27 05:51:03 +05:30 committed by GitHub
commit b947c96858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -641,6 +641,7 @@
import intializePwa from "../assets/js/pwa"
import * as version from "../.postwoman/version.json"
import { hasExtensionInstalled } from "../functions/strategies/ExtensionStrategy"
import { hasChromeExtensionInstalled } from "../functions/strategies/ChromeStrategy"
import firebase from "firebase/app"
import { fb } from "../functions/fb"
@ -702,7 +703,6 @@ export default {
showExtensions: false,
showShortcuts: false,
showSupport: false,
extensionInstalled: hasExtensionInstalled(),
fb,
navigatorShare: navigator.share,
}
@ -762,8 +762,8 @@ export default {
// Just return if showExtensionsToast is "no"
if (!showExtensionsToast) return
if (!this.extensionInstalled) {
setTimeout(() => {
setTimeout(() => {
if (!(hasExtensionInstalled() || hasChromeExtensionInstalled())) {
this.$toast.show(this.$t("extensions_info2"), {
icon: "extension",
duration: 5000,
@ -790,8 +790,8 @@ export default {
},
],
})
}, 15000)
}
}
}, 15000)
this._keyListener = function(e) {
if (e.key === "Escape") {