Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
:zap: Don't show Extension toast if user opt-out of it once or have already installed it.
Liyas Thomas5206aeead06c
diff --git a/layouts/default.vue b/layouts/default.vueindex 74664578b..447e58ae4 100644--- a/layouts/default.vue+++ b/layouts/default.vue@@ -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",