mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 00:05:24 +00:00
build: Scrap default IIFE with default globals
Change-Id: I423325dcab6af1aa3e0a76d78928686571145dac
This commit is contained in:
parent
a4257261af
commit
f3c558e148
|
@ -10,10 +10,8 @@
|
|||
},
|
||||
"rules": {
|
||||
"max-len": 0,
|
||||
"no-jquery/no-global-selector": 0,
|
||||
"no-undef": 0,
|
||||
"one-var": 0,
|
||||
"vars-on-top": 0,
|
||||
"wrap-iife": 0
|
||||
"vars-on-top": 0
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
( function ( $ ) {
|
||||
$( function () {
|
||||
var $elm = $( '.mw-display-qrcode' );
|
||||
$elm.qrcode( $elm.data( 'mw-qrcode-url' ) );
|
||||
} );
|
||||
} )( jQuery );
|
||||
$( function () {
|
||||
// eslint-disable-next-line no-jquery/no-global-selector
|
||||
var $elm = $( '.mw-display-qrcode' );
|
||||
$elm.qrcode( $elm.data( 'mw-qrcode-url' ) );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue