File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 270
270
} , true ) ;
271
271
272
272
// Watch for changes in the URL path and update the search and lint display
273
- $scope . $watch ( $location . path , function ( newPath ) {
273
+ $scope . $watch ( function ( ) { return $location . path ( ) ; } , function ( newPath ) {
274
274
const searchParameter = newPath . substring ( 1 ) ;
275
275
if ( $scope . search !== searchParameter ) {
276
276
$scope . search = searchParameter ;
292
292
}
293
293
} ) ;
294
294
295
- $scope . $watch ( $location . search , function ( newParameters ) {
295
+ $scope . $watch ( function ( ) { return $location . search ( ) ; } , function ( newParameters ) {
296
296
if ( ! internalURLChange ) {
297
297
loadFromURLParameters ( ) ;
298
298
}
299
299
internalURLChange = false ;
300
- } ) ;
300
+ } , true ) ;
301
301
302
302
$scope . updatePath = function ( ) {
303
303
if ( debounceTimeout ) {
You can’t perform that action at this time.
0 commit comments