[O] Hide https
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user