diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-01-18 09:36:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 19:36:40 -0600 |
commit | 7ddc11def7e524df194cd67a93cf83cf733b1b79 (patch) | |
tree | 154113868a39557fbb107a44b48b27d3a996308e | |
parent | d9f748a700592a55a2b73f168a747a36d74223d4 (diff) | |
download | gitea-7ddc11def7e524df194cd67a93cf83cf733b1b79.tar.gz gitea-7ddc11def7e524df194cd67a93cf83cf733b1b79.zip |
Simplify the error message when `index.js` couldn't be loaded (#22354)
In some cases, the loading failure of `index.js` is not related to the
ROOT_URL directly, ex: https://gitea.com/gitea/helm-chart/issues/392
If the user's reversed proxy is mis-configured:
`http://public-domain/gitea/xxx` -> `http://gitea:3000/gitea/xxx`, it
also causes the loading failure.
So this PR removes the ROOT_URL related tip from the error message.
-rw-r--r-- | templates/base/footer.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 3fa0f8e7ac..4d3e08a597 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -22,7 +22,7 @@ <script src='https://hcaptcha.com/1/api.js' async></script> {{end}} {{end}} - <script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + ', please make sure the asset files can be accessed and the ROOT_URL setting in app.ini is correct.')"></script> + <script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + '. Please make sure the asset files can be accessed.')"></script> {{template "custom/footer" .}} </body> </html> |