Commit e382840f authored by Alex Beregszaszi's avatar Alex Beregszaszi

Merge pull request #81 from ethereum/fix-filenamekey

Fix invalid reference to fileNameFromKey
parents 1f574be1 53dc6b79
......@@ -16,7 +16,7 @@ function StorageHandler (updateFiles) {
function check (key) {
chrome.storage.sync.get(key, function (resp) {
console.log('comparing to cloud', key, resp);
if (typeof resp[key] !== 'undefined' && obj[key] !== resp[key] && confirm('Overwrite "' + fileNameFromKey(key) + '"? Click Ok to overwrite local file with file from cloud. Cancel will push your local file to the cloud.')) {
if (typeof resp[key] !== 'undefined' && obj[key] !== resp[key] && confirm('Overwrite "' + utils.fileNameFromKey(key) + '"? Click Ok to overwrite local file with file from cloud. Cancel will push your local file to the cloud.')) {
console.log('Overwriting', key);
localStorage.setItem(key, resp[key]);
updateFiles();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment