File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1272,8 +1272,12 @@ Raven.prototype = {
1272
1272
// borrowed from: https://github.com/angular/angular.js/pull/13945/files
1273
1273
var chrome = _window . chrome ;
1274
1274
var isChromePackagedApp = chrome && chrome . app && chrome . app . runtime ;
1275
- var hasPushState = ! isChromePackagedApp && _window . history && history . pushState ;
1276
- if ( autoBreadcrumbs . location && hasPushState ) {
1275
+ var hasPushAndReplaceState =
1276
+ ! isChromePackagedApp &&
1277
+ _window . history &&
1278
+ history . pushState &&
1279
+ history . replaceState ;
1280
+ if ( autoBreadcrumbs . location && hasPushAndReplaceState ) {
1277
1281
// TODO: remove onpopstate handler on uninstall()
1278
1282
var oldOnPopState = _window . onpopstate ;
1279
1283
_window . onpopstate = function ( ) {
@@ -1302,6 +1306,7 @@ Raven.prototype = {
1302
1306
} ;
1303
1307
1304
1308
fill ( history , 'pushState' , historyReplacementFunction , wrappedBuiltIns ) ;
1309
+ fill ( history , 'replaceState' , historyReplacementFunction , wrappedBuiltIns ) ;
1305
1310
}
1306
1311
1307
1312
if ( autoBreadcrumbs . console && 'console' in _window && console . log ) {
You can’t perform that action at this time.
0 commit comments