diff --git a/js/background.js b/js/background.js index 7be0298a..a672f55e 100644 --- a/js/background.js +++ b/js/background.js @@ -1,3 +1,5 @@ +var manifestData = chrome.runtime.getManifest(); + function executeScripts(tabId, injectDetailsArray) { function createCallback(tabId, injectDetails, innerCallback) { return function () { @@ -71,7 +73,7 @@ chrome.runtime.onMessageExternal.addListener( if (request) { if (request.message) { if (request.message == "version") { - sendResponse({ version: "2.x.x" }); + sendResponse({ version: manifestData.version }); } } } @@ -80,7 +82,6 @@ chrome.runtime.onMessageExternal.addListener( ); // new version notify -var manifestData = chrome.runtime.getManifest(); var opt = { type: 'basic', title: 'TLmanaGer ' + manifestData.version + '!', diff --git a/js/inject/auto-login-sandbox.js b/js/inject/auto-login-sandbox.js deleted file mode 100644 index fd234694..00000000 --- a/js/inject/auto-login-sandbox.js +++ /dev/null @@ -1,18 +0,0 @@ -chrome.storage.sync.get(['optDevAutoSnbxLogin'], function(result) { - - if (typeof result.optDevAutoSnbxLogin == 'undefined') result.optDevAutoSnbxLogin = true; - - if (result.optDevAutoSnbxLogin) { - var userNameField = document.querySelector('[name="osUsername"]'); - - var siALS = setInterval(function() { - if (userNameField) { - if (userNameField.value.length) { - clearInterval(siALS); - document.getElementById('loginButton').click(); - } - } - }, 100); - } - -}); \ No newline at end of file diff --git a/js/optionsData.js b/js/optionsData.js index ba2cdcf6..d33b0965 100644 --- a/js/optionsData.js +++ b/js/optionsData.js @@ -95,6 +95,12 @@ var AVATARS /* The legend of Aang */ = [ var CHANGELOG = [ { + version: "2.1.2", + date: "25 Sep 2018", + lines: [ + "Remove os autologin recursive xD" + ] + }, { version: "2.1.1", date: "23 Sep 2018", lines: [ diff --git a/manifest.json b/manifest.json index cfd64229..4f06a67a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "TLmanaGer", - "version": "2.1.1", + "version": "2.1.2", "manifest_version": 2, "description": "Desarrollamiento tool", "homepage_url": "https://github.com/joelthorner/TLmanaGer", @@ -107,14 +107,6 @@ "js/inject/force-forceview.js" ] }, - { - "matches": [ - "*://*.sandbox.logicommerce.net/*" - ], - "js": [ - "js/inject/auto-login-sandbox.js" - ] - }, { "matches": [ ""