We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2e6a99 commit 2e4ef8eCopy full SHA for 2e4ef8e
util/gh-pages/script.js
@@ -270,7 +270,7 @@
270
}, true);
271
272
// Watch for changes in the URL path and update the search and lint display
273
- $scope.$watch($location.path, function (newPath) {
+ $scope.$watch(function () { return $location.path(); }, function (newPath) {
274
const searchParameter = newPath.substring(1);
275
if ($scope.search !== searchParameter) {
276
$scope.search = searchParameter;
@@ -292,12 +292,12 @@
292
}
293
});
294
295
- $scope.$watch($location.search, function (newParameters) {
+ $scope.$watch(function () { return $location.search(); }, function (newParameters) {
296
if (!internalURLChange) {
297
loadFromURLParameters();
298
299
internalURLChange = false;
300
- });
+ }, true);
301
302
$scope.updatePath = function () {
303
if (debounceTimeout) {
0 commit comments