From 2a29429104618c25a752a2f3b61527cec9921447 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 28 Jan 2017 20:36:58 -0800 Subject: WIP --- ext/bg/js/util.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/bg') 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); -- cgit v1.2.3