Skip to content

Commit 896b6b7

Browse files
committed
rename to webcomponents, remove onerror,
1 parent ecb07e4 commit 896b6b7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/base/head_script.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
4646
{{/* in case some pages don't render the pageData, we make sure it is an object to prevent null access */}}
4747
window.config.pageData = window.config.pageData || {};
4848
</script>
49-
<script src="{{AssetUrlPrefix}}/js/custcomp.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + '. Please make sure the asset files can be accessed.')"></script>
49+
<script src="{{AssetUrlPrefix}}/js/webcomponents.js?v={{AssetVersion}}"></script>

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export default {
5959
fileURLToPath(new URL('web_src/fomantic/build/semantic.css', import.meta.url)),
6060
fileURLToPath(new URL('web_src/less/index.less', import.meta.url)),
6161
],
62-
custcomp: [
63-
fileURLToPath(new URL('web_src/js/custcomp/GiteaOriginUrl.js', import.meta.url)),
62+
webcomponents: [
63+
fileURLToPath(new URL('web_src/js/webcomponents/GiteaOriginUrl.js', import.meta.url)),
6464
],
6565
swagger: [
6666
fileURLToPath(new URL('web_src/js/standalone/swagger.js', import.meta.url)),

0 commit comments

Comments
 (0)