📝 Typo
This commit is contained in:
@@ -26,8 +26,6 @@ const app = new Vue({
|
|||||||
headers: '',
|
headers: '',
|
||||||
body: ''
|
body: ''
|
||||||
},
|
},
|
||||||
|
|
||||||
// Load history from local storage
|
|
||||||
history: window.localStorage.getItem("history") ? JSON.parse(window.localStorage.getItem("history")) : []
|
history: window.localStorage.getItem("history") ? JSON.parse(window.localStorage.getItem("history")) : []
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -70,8 +68,6 @@ const app = new Vue({
|
|||||||
methods: {
|
methods: {
|
||||||
deleteHistory(entry) {
|
deleteHistory(entry) {
|
||||||
this.history.splice(this.history.indexOf(entry), 1)
|
this.history.splice(this.history.indexOf(entry), 1)
|
||||||
|
|
||||||
// Update the history
|
|
||||||
window.localStorage.setItem("history", JSON.stringify(this.history))
|
window.localStorage.setItem("history", JSON.stringify(this.history))
|
||||||
},
|
},
|
||||||
useHistory({
|
useHistory({
|
||||||
@@ -97,10 +93,7 @@ const app = new Vue({
|
|||||||
url: this.url,
|
url: this.url,
|
||||||
path: this.path
|
path: this.path
|
||||||
})
|
})
|
||||||
|
|
||||||
// Persist history in Local Storage
|
|
||||||
window.localStorage.setItem("history", JSON.stringify(this.history))
|
window.localStorage.setItem("history", JSON.stringify(this.history))
|
||||||
|
|
||||||
if (this.$refs.response.classList.contains('hidden')) {
|
if (this.$refs.response.classList.contains('hidden')) {
|
||||||
this.$refs.response.classList.toggle('hidden')
|
this.$refs.response.classList.toggle('hidden')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user