WIP
This commit is contained in:
parent
944be5fa64
commit
2a29429104
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user