diff options
Diffstat (limited to 'web_src/js/webcomponents/GiteaOriginUrl.js')
-rw-r--r-- | web_src/js/webcomponents/GiteaOriginUrl.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web_src/js/webcomponents/GiteaOriginUrl.js b/web_src/js/webcomponents/GiteaOriginUrl.js index c8736ac5c5..fca736064c 100644 --- a/web_src/js/webcomponents/GiteaOriginUrl.js +++ b/web_src/js/webcomponents/GiteaOriginUrl.js @@ -1,6 +1,4 @@ -import '@webcomponents/custom-elements'; // automatically adds custom elements for older browsers that don't support it - -// this is a Gitea's private HTML component, it converts an absolute or relative URL to an absolute URL with the current origin +// Convert an absolute or relative URL to an absolute URL with the current origin window.customElements.define('gitea-origin-url', class extends HTMLElement { connectedCallback() { const urlStr = this.getAttribute('data-url'); |