From 397e850fbac25e03dab19b91476a2290a9eabce9 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 7 Apr 2017 11:29:49 -0400 Subject: [PATCH] FIX: Allow `replaceState` to run on iOS. Removes a test for unsupported versions. --- app/assets/javascripts/discourse/lib/url.js.es6 | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/url.js.es6 b/app/assets/javascripts/discourse/lib/url.js.es6 index 84d319a6a9d..a08aa5810c6 100644 --- a/app/assets/javascripts/discourse/lib/url.js.es6 +++ b/app/assets/javascripts/discourse/lib/url.js.es6 @@ -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