Don't show Extension toast if user opt-out of it once or have already installed it.

This commit is contained in:
Liyas Thomas
2020-01-18 10:07:30 +05:30
parent 6a93e56747
commit 5206aeead0

View File

@@ -619,7 +619,8 @@ export default {
showExtensions: false,
showShortcuts: false,
showSupport: false,
firefoxExtInstalled: window.firefoxExtSendRequest,
firefoxExtInstalled:
window.firefoxExtSendRequest !== undefined ? true : false,
chromeExtInstalled: false
};
},
@@ -680,7 +681,11 @@ export default {
}
let showExtensionsToast =
localStorage.getItem("showExtensionsToast") === "yes";
if (!showExtensionsToast) {
if (
!this.firefoxExtInstalled &&
!this.chromeExtInstalled &&
!showExtensionsToast
) {
setTimeout(() => {
this.$toast.show(this.$t("extensions_info2"), {
icon: "extension",