Reduce moduleUrl conditional
This commit is contained in:
parent
f26100d013
commit
13b572927b
1 changed files with 1 additions and 7 deletions
|
|
@ -78,13 +78,7 @@ exports.moduleUrl = function(name) {
|
||||||
var component = parts[1];
|
var component = parts[1];
|
||||||
var base = parts[2];
|
var base = parts[2];
|
||||||
|
|
||||||
if (component === "mode") {
|
return this.get(component + "Path") + "/" + component + "-" + base + this.get("suffix");
|
||||||
return this.get("modePath") + "/mode-" + base + this.get("suffix");
|
|
||||||
} else if (component === "theme") {
|
|
||||||
return this.get("themePath") + "/theme-" + base + this.get("suffix");
|
|
||||||
} else if (component === "worker") {
|
|
||||||
return this.get("workerPath") + "/worker-" + base + this.get("suffix");
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.init = function() {
|
exports.init = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue