Revert "js: Set eslint to ecmascript 2020"
This reverts commit 86e2573c39.
Breaks stuff with QtWebKit, whoops...
This commit is contained in:
parent
b5e9cf85df
commit
4a5515666e
|
|
@ -14,9 +14,6 @@ env:
|
|||
browser: true
|
||||
es6: true
|
||||
|
||||
parserOptions:
|
||||
ecmaVersion: 2020
|
||||
|
||||
extends:
|
||||
"eslint:all"
|
||||
|
||||
|
|
@ -66,4 +63,3 @@ rules:
|
|||
no-negated-condition: "off"
|
||||
no-console: "off"
|
||||
sort-vars: "off"
|
||||
no-continue: "off"
|
||||
|
|
|
|||
|
|
@ -1129,7 +1129,7 @@ window._qutebrowser.caret = (function() {
|
|||
const sel = window.getSelection();
|
||||
sel.setBaseAndExtent(
|
||||
sel.extentNode, sel.extentOffset, sel.baseNode,
|
||||
sel.baseOffset,
|
||||
sel.baseOffset
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ window.loadHistory = (function() {
|
|||
// python's time.time returns seconds, but js Date expects ms
|
||||
const currentItemDate = new Date(item.time * 1000);
|
||||
getSessionNode(currentItemDate).appendChild(makeHistoryRow(
|
||||
item.url, item.title, currentItemDate.toLocaleTimeString(),
|
||||
item.url, item.title, currentItemDate.toLocaleTimeString()
|
||||
));
|
||||
lastItemDate = currentItemDate;
|
||||
if (item.time === nextTime) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ SOFTWARE.
|
|||
"writable": true,
|
||||
"enumerable": false,
|
||||
"configurable": true,
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -15,13 +15,13 @@ window._qutebrowser.scroll = (function() {
|
|||
document.body.scrollWidth,
|
||||
document.body.offsetWidth,
|
||||
document.documentElement.scrollWidth,
|
||||
document.documentElement.offsetWidth,
|
||||
document.documentElement.offsetWidth
|
||||
);
|
||||
const height = Math.max(
|
||||
document.body.scrollHeight,
|
||||
document.body.offsetHeight,
|
||||
document.documentElement.scrollHeight,
|
||||
document.documentElement.offsetHeight,
|
||||
document.documentElement.offsetHeight
|
||||
);
|
||||
|
||||
if (x !== undefined) {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ window._qutebrowser.webelem = (function() {
|
|||
for (let k = 0; k < client_rects.length; ++k) {
|
||||
const rect = client_rects[k];
|
||||
out.rects.push(
|
||||
add_offset_rect(rect, frame_offset_rect),
|
||||
add_offset_rect(rect, frame_offset_rect)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue