Skip to content

Commit

Permalink
fixup! content verification in node
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Jun 25, 2016
1 parent e742fb4 commit 66f8f40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ function readPackage(requestPath) {
}

var jsonPath = path.resolve(requestPath, 'package.json');
if (global.__nwjs_cv) {
var url = extensionUrl(jsonPath);
var request = new global.XMLHttpRequest();
request.open('GET', url, false);
request.send(null);
}
var json = internalModuleReadFile(path._makeLong(jsonPath));

if (json === undefined) {
Expand Down

0 comments on commit 66f8f40

Please sign in to comment.