mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-28 01:10:04 +00:00
Remove jQuery.jStorage shim
Per the FIXME above, it should've been removed midway through June. Bug: T136241 Change-Id: I10723f9067c2573786270cd40fe012adb8c19c8b
This commit is contained in:
parent
fb0e580d01
commit
0ad88a2416
|
@ -171,26 +171,7 @@
|
|||
}
|
||||
|
||||
$( function () {
|
||||
var jStorage = mw.storage.get( 'jStorage' );
|
||||
|
||||
// FIXME: Can be removed a month from jStorage removal. Not perfect but should work in most cases.
|
||||
if ( jStorage && jStorage.indexOf( 'popups-enabled' ) > 0 ) {
|
||||
// slower loading popups when in transition mode
|
||||
mw.loader.using( 'jquery.jStorage' ).done( function () {
|
||||
var val = $.jStorage.get( 'mwe-popups-enabled' );
|
||||
// delete jStorage key
|
||||
$.jStorage.deleteKey( 'mwe-popups-enabled' );
|
||||
if ( val === 'false' ) {
|
||||
// copy over
|
||||
mw.storage.set( 'mwe-popups-enabled', '0' );
|
||||
} else {
|
||||
if ( val ) {
|
||||
mw.storage.set( 'mwe-popups-enabled', '1' );
|
||||
}
|
||||
initPopups();
|
||||
}
|
||||
} );
|
||||
} else if ( mw.popups.enabled ) {
|
||||
if ( mw.popups.enabled ) {
|
||||
initPopups();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue