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