Skip to content

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

Not saving last entry bug fixed.

izerozlu0411b205ff2c
diff --git a/pages/index.vue b/pages/index.vue
index 5348feda2..135aa4832 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -146,7 +146,7 @@
</li>
</ul>
<ul>
- <li>
+ <li>
<div class="flex-wrap">
<label for="body">response</label>
<button v-if="response.body" name="action" class="btn-copy" @click="copyResponse">Copy Response</button>
@@ -324,7 +324,6 @@
})
},
sendRequest() {
- window.localStorage.setItem('history', JSON.stringify(this.history))
if (this.$refs.response.$el.classList.contains('hidden')) {
this.$refs.response.$el.classList.toggle('hidden')
}
@@ -369,6 +368,7 @@
url: this.url,
path: this.path
}, ...this.history]
+ window.localStorage.setItem('history', JSON.stringify(this.history))
}
xhr.onerror = e => {
this.response.status = xhr.status