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) {
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);

View File

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

View File

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