From d14a59435a1c9217b1d63799b7f2a1d368f32063 Mon Sep 17 00:00:00 2001 From: achmizs Date: Mon, 4 Feb 2019 23:54:07 -0500 Subject: [PATCH] Fixed bugs --- src/background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/background.js b/src/background.js index bc7a51c..666fbc7 100644 --- a/src/background.js +++ b/src/background.js @@ -34,13 +34,13 @@ function initialize() { var xhr = new XMLHttpRequest(); xhr.onload = () => { - AKS.actionIcons = JSON.parse(this.response); + AKS.actionIcons = JSON.parse(xhr.response); completeInitialization(); }; - xhr.open('GET', chrome.extension.getURL('/action_icons.json'), true); + xhr.open('GET', chrome.extension.getURL('action_icons.json'), true); xhr.send(); } -initialize; +initialize();