Index: lib/io.js |
=================================================================== |
--- a/lib/io.js |
+++ b/lib/io.js |
@@ -58,18 +58,18 @@ |
} |
function removeFile(fileName) |
{ |
return new Promise((resolve, reject) => |
{ |
ext.storage.remove(fileToKey(fileName), () => |
{ |
- if (chrome.runtime.lastError) |
- reject(chrome.runtime.lastError.message); |
+ if (browser.runtime.lastError) |
+ reject(browser.runtime.lastError.message); |
else |
resolve(); |
}); |
}); |
} |
exports.IO = |
{ |
@@ -132,18 +132,18 @@ |
renameFile(fromFile, newName) |
{ |
return loadFile(fromFile).then(entry => |
{ |
return new Promise((resolve, reject) => |
{ |
ext.storage.set(fileToKey(newName), entry, () => |
{ |
- if (chrome.runtime.lastError) |
- reject(chrome.runtime.lastError.message); |
+ if (browser.runtime.lastError) |
+ reject(browser.runtime.lastError.message); |
else |
resolve(); |
}); |
}); |
}).then(() => removeFile(fromFile)); |
}, |
/** |