Skip to content

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

:zap: Open GitHub link in a new tab

Liyas Thomas452c4ac89eb7
diff --git a/index.html b/index.html
index cd90bcd10..52c2db460 100644
--- a/index.html
+++ b/index.html
@@ -259,7 +259,7 @@
</div>
</fieldset>
<footer>
- <a href="https://github.com/liyasthomas/postwoman"><img src="icons/github.svg" alt="" style="margin-right: 16px">GitHub</a>
+ <a href="https://github.com/liyasthomas/postwoman" target="_blank"><img src="icons/github.svg" alt="" style="margin-right: 16px">GitHub</a>
<button id="installPWA" onclick="installPWA()">
Install PWA
</button>
diff --git a/script.js b/script.js
index a5360654c..0adca43b6 100644
--- a/script.js
+++ b/script.js
@@ -29,11 +29,9 @@ const app = new Vue({
history: window.localStorage.getItem('history') ? JSON.parse(window.localStorage.getItem('history')) : []
},
computed: {
-
noHistoryToClear() {
return this.history.length === 0;
},
-
urlNotValid() {
const pattern = new RegExp('^(https?:\\/\\/)?' +
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' +
@@ -84,12 +82,10 @@ const app = new Vue({
this.history.splice(this.history.indexOf(entry), 1)
window.localStorage.setItem('history', JSON.stringify(this.history))
},
-
clearHistory() {
this.history = []
window.localStorage.setItem('history', JSON.stringify(this.history))
},
-
useHistory({
method,
url,