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 &&
|
||||
window.history.pushState &&
|
||||
window.history.replaceState &&
|
||||
!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/) &&
|
||||
(window.location.pathname !== path)) {
|
||||
|
||||
// Always use replaceState in the next runloop to prevent weird routes changing
|
||||
|
|
Loading…
Reference in New Issue