MaxSem has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/103722


Change subject: Check whether history.pushState is supported
......................................................................

Check whether history.pushState is supported

Bug: 45923
Change-Id: I0fa7313e0b2051b356703f9f0a5bb7bce2423f2f
---
M resources/main.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ApiSandbox 
refs/changes/22/103722/1

diff --git a/resources/main.js b/resources/main.js
index 2b8b51a..ee6555b 100644
--- a/resources/main.js
+++ b/resources/main.js
@@ -577,7 +577,7 @@
 
                        historyEntry = '#' + url + params;
 
-                       if ( window.location.hash !== historyEntry ) {
+                       if ( window.location.hash !== historyEntry && history 
&& history.pushState ) {
                                history.pushState( null, '', historyEntry );
                        }
                        url = mw.util.wikiScript( 'api' ) + '?' + url;

-- 
To view, visit https://gerrit.wikimedia.org/r/103722
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0fa7313e0b2051b356703f9f0a5bb7bce2423f2f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ApiSandbox
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to