From 66f8f406b58e835e3aef04f39f8d2920e15ff449 Mon Sep 17 00:00:00 2001 From: Roger Wang Date: Thu, 23 Jun 2016 13:07:06 +0800 Subject: [PATCH] fixup! content verification in node --- lib/module.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/module.js b/lib/module.js index f30ab166c69..653a6d0c698 100644 --- a/lib/module.js +++ b/lib/module.js @@ -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) {