Fix: Uncaught SyntaxError: Identifier 'getCorsUrl' has already been declared (#3204)

Issue #3202 

move shared modules/default/utils.js file to index.html
This commit is contained in:
Bugsounet - Cédric
2023-09-19 07:14:11 +02:00
committed by GitHub
parent e5adbea49c
commit af0fe37f70
4 changed files with 4 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ Module.register("weather", {
// Return the scripts that are necessary for the weather module.
getScripts: function () {
return ["moment.js", this.file("../utils.js"), "weatherutils.js", "weatherobject.js", this.file("providers/overrideWrapper.js"), "weatherprovider.js", "suncalc.js", this.file(`providers/${this.config.weatherProvider.toLowerCase()}.js`)];
return ["moment.js", "weatherutils.js", "weatherobject.js", this.file("providers/overrideWrapper.js"), "weatherprovider.js", "suncalc.js", this.file(`providers/${this.config.weatherProvider.toLowerCase()}.js`)];
},
// Override getHeader method.