mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
FIX: IE9 regression
This commit is contained in:
@@ -152,11 +152,11 @@ Ember.DiscourseLocation = Ember.Object.extend({
|
|||||||
pushState: function(path) {
|
pushState: function(path) {
|
||||||
var state = { path: path };
|
var state = { path: path };
|
||||||
|
|
||||||
get(this, 'history').pushState(state, null, path);
|
|
||||||
|
|
||||||
// store state if browser doesn't support `history.state`
|
// store state if browser doesn't support `history.state`
|
||||||
if (!supportsHistoryState) {
|
if (!supportsHistoryState) {
|
||||||
this._historyState = state;
|
this._historyState = state;
|
||||||
|
} else {
|
||||||
|
get(this, 'history').pushState(state, null, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// used for webkit workaround
|
// used for webkit workaround
|
||||||
@@ -174,11 +174,11 @@ Ember.DiscourseLocation = Ember.Object.extend({
|
|||||||
replaceState: function(path) {
|
replaceState: function(path) {
|
||||||
var state = { path: path };
|
var state = { path: path };
|
||||||
|
|
||||||
get(this, 'history').replaceState(state, null, path);
|
|
||||||
|
|
||||||
// store state if browser doesn't support `history.state`
|
// store state if browser doesn't support `history.state`
|
||||||
if (!supportsHistoryState) {
|
if (!supportsHistoryState) {
|
||||||
this._historyState = state;
|
this._historyState = state;
|
||||||
|
} else {
|
||||||
|
get(this, 'history').replaceState(state, null, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// used for webkit workaround
|
// used for webkit workaround
|
||||||
|
|||||||
Reference in New Issue
Block a user