diff --git a/src/js/background.js b/src/js/background.js index 9c834d5d..0682ee21 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -2,6 +2,16 @@ var background = (function() { var mod = {}; + mod.import = function() { + // get files from input + var fileList = helper.e(".control-background-image-file").files; + // if file was added + if (fileList.length > 0) { + // validate the file + _validateImageFile(fileList); + }; + }; + mod.clear = { file: function() { helper.setObject({ @@ -159,16 +169,6 @@ var background = (function() { } }; - var importData = function() { - // get files from input - var fileList = helper.e(".control-background-image-file").files; - // if file was added - if (fileList.length > 0) { - // validate the file - _validateImageFile(fileList); - }; - }; - var _validateImageFile = function(fileList) { // make new file reader var reader = new FileReader(); @@ -212,9 +212,8 @@ var background = (function() { return { init: init, mod: mod, - bind: bind, render: render, - importData: importData + bind: bind }; })(); diff --git a/src/js/version.js b/src/js/version.js index 36e2639c..b76f4774 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "3.45.0"; + var current = "3.46.0"; var compare = function(a, b) { var pa = a.split("."); diff --git a/src/manifest.json b/src/manifest.json index 2f4f4634..d1089b97 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "nightTab", "short_name": "nightTab", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", - "version": "3.45.0", + "version": "3.46.0", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"