diff --git a/index.html b/index.html index 56b9216..79cf71b 100644 --- a/index.html +++ b/index.html @@ -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)