FIX: Allow `replaceState` to run on iOS.

Removes a test for unsupported versions.
This commit is contained in:
Robin Ward 2017-04-07 11:29:49 -04:00
parent 9663a74445
commit 397e850fba
1 changed files with 0 additions and 1 deletions

View File

@ -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