Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
YH_Explorer
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
孟顺
6 years ago
Commit
288e41390e7ff6a7e4588ce8324d105be7f083ea
1 parent
66a5de63
注释cordova.js 无用代码
review by 枪兵
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
YHExplorer/CordovaLib/cordova.js
YHExplorer/CordovaLib/cordova.js
View file @
288e413
...
...
@@ -1960,15 +1960,17 @@ function findCordovaPath () {
// This is an async process, but onDeviceReady is blocked on onPluginsReady.
// onPluginsReady is fired when there are no plugins to load, or they are all done.
exports
.
load
=
function
(
callback
)
{
var
pathPrefix
=
findCordovaPath
();
if
(
pathPrefix
===
null
)
{
console
.
log
(
'Could not find cordova.js script tag. Plugin loading may fail.'
);
pathPrefix
=
''
;
}
injectIfNecessary
(
'cordova/plugin_list'
,
pathPrefix
+
'cordova_plugins.js'
,
function
()
{
var
moduleList
=
require
(
'cordova/plugin_list'
);
handlePluginsObject
(
pathPrefix
,
moduleList
,
callback
);
},
callback
);
callback
();
// var pathPrefix = findCordovaPath();
// if (pathPrefix === null) {
// console.log('Could not find cordova.js script tag. Plugin loading may fail.');
// pathPrefix = '';
// }
// injectIfNecessary('cordova/plugin_list', pathPrefix + 'cordova_plugins.js', function () {
// var moduleList = require('cordova/plugin_list');
// handlePluginsObject(pathPrefix, moduleList, callback);
// }, callback);
};
});
...
...
Please
register
or
login
to post a comment