mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Avoid double-loading dist/core-main.js when apps have scripts named main
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
23e8ae15aa
commit
e8cf1a8759
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ class JSResourceLocator extends ResourceLocator {
|
|||
|| $this->cacheAndAppendCombineJsonIfExist($this->serverroot, $script.'.json')
|
||||
|| $this->appendIfExist($this->serverroot, $theme_dir.'core/'.$script.'.js')
|
||||
|| $this->appendIfExist($this->serverroot, 'core/'.$script.'.js')
|
||||
|| $this->appendIfExist($this->serverroot, "dist/core-$scriptName.js")
|
||||
|| (strpos($scriptName, '/') === -1 && $this->appendIfExist($this->serverroot, "dist/core-$scriptName.js"))
|
||||
|| $this->cacheAndAppendCombineJsonIfExist($this->serverroot, 'core/'.$script.'.json')
|
||||
) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue