mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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
Block a user