diff options
Diffstat (limited to 'extension/popup')
-rw-r--r-- | extension/popup/balance-overview.html | 4 | ||||
-rw-r--r-- | extension/popup/balance-overview.js | 17 |
2 files changed, 11 insertions, 10 deletions
diff --git a/extension/popup/balance-overview.html b/extension/popup/balance-overview.html index f6adc521d..166908bbc 100644 --- a/extension/popup/balance-overview.html +++ b/extension/popup/balance-overview.html @@ -5,8 +5,8 @@ <meta charset="utf-8"> <link rel="stylesheet" href="popup.css" type="text/css"> <script src="../lib/util.js" type="text/javascript"></script> - <script src="../lib/handlebars-v4.0.5.js"></script> - <script src="../lib/commonHelpers.js"></script> + <script src="../lib/vendor/handlebars-v4.0.5.js" type="text/javascript"></script> + <script src="../lib/commonHelpers.js" type="text/javascript"></script> <script src="balance-overview.js" type="text/javascript"></script> <script id="balance-template" type="text/x-handlebars-template"> diff --git a/extension/popup/balance-overview.js b/extension/popup/balance-overview.js index 08ad465f4..600c4c45d 100644 --- a/extension/popup/balance-overview.js +++ b/extension/popup/balance-overview.js @@ -14,30 +14,31 @@ TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> */ "use strict"; -document.addEventListener("DOMContentLoaded", (e) => { +document.addEventListener("DOMContentLoaded", function (e) { console.log("content loaded"); chrome.runtime.sendMessage({ type: "balances" }, function (wallet) { - let context = document.getElementById("balance-template").innerHTML; - let template = Handlebars.compile(context); + var context = document.getElementById("balance-template").innerHTML; + var template = Handlebars.compile(context); document.getElementById("content").innerHTML = template(wallet); console.log("got wallet", JSON.stringify(wallet)); - let el = document.getElementById("link-kudos"); + var el = document.getElementById("link-kudos"); if (el) { - el.onclick = (e) => { - let target = e.target; + el.onclick = function (e) { + var target = e.target; chrome.tabs.create({ "url": target.href }); }; } }); - document.getElementById("debug").addEventListener("click", (e) => { + document.getElementById("debug").addEventListener("click", function (e) { chrome.tabs.create({ "url": chrome.extension.getURL("pages/debug.html") }); }); - document.getElementById("reset").addEventListener("click", (e) => { + document.getElementById("reset").addEventListener("click", function (e) { chrome.runtime.sendMessage({ type: "reset" }); window.close(); }); }); +//# sourceMappingURL=balance-overview.js.map
\ No newline at end of file |