Skip to content

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

:pencil: Typo

liyasthomasfd4dcad80c3e
diff --git a/script.js b/script.js
index 85e9b843e..61a003c34 100644
--- a/script.js
+++ b/script.js
@@ -26,8 +26,6 @@ const app = new Vue({
headers: '',
body: ''
},
-
- // Load history from local storage
history: window.localStorage.getItem("history") ? JSON.parse(window.localStorage.getItem("history")) : []
},
computed: {
@@ -70,8 +68,6 @@ const app = new Vue({
methods: {
deleteHistory(entry) {
this.history.splice(this.history.indexOf(entry), 1)
-
- // Update the history
window.localStorage.setItem("history", JSON.stringify(this.history))
},
useHistory({
@@ -97,10 +93,7 @@ const app = new Vue({
url: this.url,
path: this.path
})
-
- // Persist history in Local Storage
window.localStorage.setItem("history", JSON.stringify(this.history))
-
if (this.$refs.response.classList.contains('hidden')) {
this.$refs.response.classList.toggle('hidden')
}