Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Extension Version is reported on the settings page

Andrew Bastin0246e09595d9
diff --git a/pages/settings.vue b/pages/settings.vue
index 0bfff924d..e0ccc5d31 100644
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@ -129,6 +129,15 @@
</div>
</li>
</ul>
+ <ul class="info">
+ <li v-if="extensionVersion != null">
+ Extension Verison: v{{ extensionVersion.major }}.{{ extensionVersion.minor }}
+ </li>
+
+ <li v-else>
+ Extension Verison: Not Reported
+ </li>
+ </ul>
</pw-section>
<pw-section class="blue" :label="$t('proxy')" ref="proxy">
@@ -210,6 +219,7 @@
<script>
import firebase from "firebase/app"
import { fb } from "~/helpers/fb"
+import { hasExtensionInstalled } from "../helpers/strategies/ExtensionStrategy"
export default {
components: {
@@ -299,6 +309,10 @@ export default {
},
],
+ extensionVersion: hasExtensionInstalled()
+ ? window.__POSTWOMAN_EXTENSION_HOOK__.getVersion()
+ : null,
+
settings: {
SCROLL_INTO_ENABLED:
typeof this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED !== "undefined"