Skip to content

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

Merge branch 'master' into master

Liyas Thomas1ab691108e5b
diff --cc script.js
index 3e7b747b1,6e2b8b431..d55b431bf
--- a/script.js
+++ b/script.js
@@@ -72,11 -85,14 +85,17 @@@ const app = new Vue(
document.getElementsByClassName(el)[0].classList.toggle('hidden')
},
sendRequest() {
- // Expand the Response section incase it is hidden
+ const d = new Date()
+ const n = d.toLocaleTimeString()
+ this.history.push({
+ time: n,
+ method: this.method,
+ url: this.url,
+ path: this.path
+ })
+ if (this.$refs.response.classList.contains('hidden')) {
+ this.$refs.response.classList.toggle('hidden')
+ }
-
this.$refs.response.scrollIntoView({
behavior: 'smooth'
})