[O] Hide https

This commit is contained in:
Hykilpikonna
2022-08-15 18:19:32 -04:00
parent e827fabd0f
commit 5c8124b623
+1 -1
View File
@@ -119,7 +119,7 @@
const resp = await fetch('/', {method: 'PUT', body: url})
const txt = await resp.text()
this.error = resp.status !== 200
this.short = this.error ? txt : window.location.origin + txt
this.short = this.error ? txt : window.location.origin.replaceAll(/https?:\/\//, '') + txt
// Copy to clipboard
if (!this.error)