mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(dom) loadRemote: window[o.name] -> o.name && window[o.name]
This commit is contained in:
parent
a2eb14a79b
commit
53c35c0e02
1 changed files with 1 additions and 1 deletions
|
|
@ -348,7 +348,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
if (!callback)
|
||||
callback = options;
|
||||
|
||||
if (window[o.name])
|
||||
if (o.name && window[o.name])
|
||||
callback();
|
||||
else
|
||||
Files.get(['config', 'modules'], function(error, config, modules) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue