From 9c60f104c889d5e21b0abd7cd91bc0aa3c2e1b0b Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 14 Apr 2016 14:29:44 -0700 Subject: [PATCH] Use winreg 1.1.1 instead of feross fork (#408) --- main/handlers.js | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main/handlers.js b/main/handlers.js index 50b9a082..bc94a602 100644 --- a/main/handlers.js +++ b/main/handlers.js @@ -194,17 +194,17 @@ function uninstallWin32 () { }) commandKey.get('', function (err, item) { if (!err && item.value.indexOf(command) >= 0) { - eraseProtocol() + destroyProtocol() } }) } - function eraseProtocol () { + function destroyProtocol () { var protocolKey = new Registry({ hive: Registry.HKCU, key: '\\Software\\Classes\\' + protocol }) - protocolKey.erase(function () {}) + protocolKey.destroy(function () {}) } } @@ -216,7 +216,7 @@ function uninstallWin32 () { hive: Registry.HKCU, // HKEY_CURRENT_USER key: '\\Software\\Classes\\' + id }) - idKey.erase(getExt) + idKey.destroy(getExt) } function getExt () { @@ -226,17 +226,17 @@ function uninstallWin32 () { }) extKey.get('', function (err, item) { if (!err && item.value === id) { - eraseExt() + destroyExt() } }) } - function eraseExt () { + function destroyExt () { var extKey = new Registry({ hive: Registry.HKCU, // HKEY_CURRENT_USER key: '\\Software\\Classes\\' + ext }) - extKey.erase(function () {}) + extKey.destroy(function () {}) } } } diff --git a/package.json b/package.json index 29e8e3c6..9a69f880 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "upload-element": "^1.0.1", "virtual-dom": "^2.1.1", "webtorrent": "0.x", - "winreg": "feross/node-winreg" + "winreg": "^1.1.1" }, "devDependencies": { "electron-osx-sign": "^0.3.0",