mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-13 17:56:55 +00:00
eslint: Enforce no-var
Change-Id: I9853fde20dcd316d43f28b906bc501ca6329d138
This commit is contained in:
parent
d6b589f50b
commit
0fd18bb233
|
@ -1,7 +1,4 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": "wikimedia/language/es6",
|
||||
"rules": {
|
||||
"no-var": "off"
|
||||
}
|
||||
"extends": "wikimedia/language/es6"
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
var types = require( './types.json' );
|
||||
const types = require( './types.json' );
|
||||
// Load Popups when touch events are not available in the browser (e.g. not a mobile device).
|
||||
var isTouchDevice = 'ontouchstart' in document.documentElement;
|
||||
var supportNotQueries;
|
||||
const isTouchDevice = 'ontouchstart' in document.documentElement;
|
||||
let supportNotQueries;
|
||||
try {
|
||||
supportNotQueries = document.body.matches( 'div:not(.foo,.bar)' );
|
||||
supportNotQueries = true;
|
||||
|
|
Loading…
Reference in a new issue