aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-28 20:36:58 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-28 20:36:58 -0800
commit2a29429104618c25a752a2f3b61527cec9921447 (patch)
tree8a277105ead916dfe7ed71fdf449ffa468d9b217 /ext/bg/js
parent944be5fa64c935940a33a3d2494833bfb17f3358 (diff)
WIP
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/util.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 0b649ef6..24050cf3 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -240,6 +240,7 @@ function formatField(field, definition, mode, options) {
function loadJson(url) {
return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest();
+ xhr.overrideMimeType('application/json');
xhr.addEventListener('load', () => resolve(xhr.responseText));
xhr.addEventListener('error', () => reject('failed to execute network request'));
xhr.open('GET', url);