This commit is contained in:
Alex Yatskov 2017-01-28 20:36:58 -08:00
parent 944be5fa64
commit 2a29429104
3 changed files with 5 additions and 3 deletions

View File

@ -240,6 +240,7 @@ function formatField(field, definition, mode, options) {
function loadJson(url) { function loadJson(url) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.overrideMimeType('application/json');
xhr.addEventListener('load', () => resolve(xhr.responseText)); xhr.addEventListener('load', () => resolve(xhr.responseText));
xhr.addEventListener('error', () => reject('failed to execute network request')); xhr.addEventListener('error', () => reject('failed to execute network request'));
xhr.open('GET', url); xhr.open('GET', url);

View File

@ -67,9 +67,9 @@ class Driver {
return; return;
} }
if (e.which === 1 /* lmb */) { // if (e.which === 1 /* lmb */) {
return; // return;
} // }
if (this.options.scanning.requireShift && !e.shiftKey) { if (this.options.scanning.requireShift && !e.shiftKey) {
return; return;

View File

@ -12,6 +12,7 @@
"content_scripts": [{ "content_scripts": [{
"matches": ["*://*/*", "file://*/*"], "matches": ["*://*/*", "file://*/*"],
"js": [ "js": [
"fg/js/gecko.js",
"fg/js/source-range.js", "fg/js/source-range.js",
"fg/js/source-element.js", "fg/js/source-element.js",
"fg/js/popup.js", "fg/js/popup.js",