Commit 53dc6b79 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Fix invalid reference to fileNameFromKey

parent 1f574be1
...@@ -16,7 +16,7 @@ function StorageHandler (updateFiles) { ...@@ -16,7 +16,7 @@ function StorageHandler (updateFiles) {
function check (key) { function check (key) {
chrome.storage.sync.get(key, function (resp) { chrome.storage.sync.get(key, function (resp) {
console.log('comparing to cloud', key, 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); console.log('Overwriting', key);
localStorage.setItem(key, resp[key]); localStorage.setItem(key, resp[key]);
updateFiles(); 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