geoclient: Update localStorage comment
Follows-up 4cd1def.
localStorage is available by all supported browsers as of MediaWiki 1.25.
As of MediaWiki 1.27, this is also enforced by an explicit feature test
in startup.js.
Change-Id: I12b577919579f498e294376f748715b868f21869
This commit is contained in:
@@ -29,10 +29,9 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Using cache for speed and to be nice for the service. Using cookies over
|
// Using cache for speed and to reduce load on the third-party service.
|
||||||
// localstorage because cookies support automatic expiring and are supported
|
// Using cookies over localStorage because cookies support automatic expiring.
|
||||||
// everywhere where as localstorage might not. This cookie is not currently
|
// This cookie is not currently read server-side.
|
||||||
// read server side.
|
|
||||||
geo = mw.cookie.get( 'ULSGeo' );
|
geo = mw.cookie.get( 'ULSGeo' );
|
||||||
if ( geo ) {
|
if ( geo ) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user