FIX: Allow `replaceState` to run on iOS.
Removes a test for unsupported versions.
This commit is contained in:
parent
9663a74445
commit
397e850fba
|
@ -120,7 +120,6 @@ const DiscourseURL = Ember.Object.extend({
|
||||||
if (window.history &&
|
if (window.history &&
|
||||||
window.history.pushState &&
|
window.history.pushState &&
|
||||||
window.history.replaceState &&
|
window.history.replaceState &&
|
||||||
!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/) &&
|
|
||||||
(window.location.pathname !== path)) {
|
(window.location.pathname !== path)) {
|
||||||
|
|
||||||
// Always use replaceState in the next runloop to prevent weird routes changing
|
// Always use replaceState in the next runloop to prevent weird routes changing
|
||||||
|
|
Loading…
Reference in New Issue