⚡ Don't show Extension toast if user opt-out of it once or have already installed it.
This commit is contained in:
@@ -619,7 +619,8 @@ export default {
|
|||||||
showExtensions: false,
|
showExtensions: false,
|
||||||
showShortcuts: false,
|
showShortcuts: false,
|
||||||
showSupport: false,
|
showSupport: false,
|
||||||
firefoxExtInstalled: window.firefoxExtSendRequest,
|
firefoxExtInstalled:
|
||||||
|
window.firefoxExtSendRequest !== undefined ? true : false,
|
||||||
chromeExtInstalled: false
|
chromeExtInstalled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -680,7 +681,11 @@ export default {
|
|||||||
}
|
}
|
||||||
let showExtensionsToast =
|
let showExtensionsToast =
|
||||||
localStorage.getItem("showExtensionsToast") === "yes";
|
localStorage.getItem("showExtensionsToast") === "yes";
|
||||||
if (!showExtensionsToast) {
|
if (
|
||||||
|
!this.firefoxExtInstalled &&
|
||||||
|
!this.chromeExtInstalled &&
|
||||||
|
!showExtensionsToast
|
||||||
|
) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$toast.show(this.$t("extensions_info2"), {
|
this.$toast.show(this.$t("extensions_info2"), {
|
||||||
icon: "extension",
|
icon: "extension",
|
||||||
|
|||||||
Reference in New Issue
Block a user