about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Hetro <whee@smaertness.net>2023-06-02 22:57:04 -0400
committerBrian Hetro <whee@smaertness.net>2023-06-02 22:57:21 -0400
commit2e4ef8e72c5e662cc9fe536ff019ab4d5802db84 (patch)
tree3666347807a4afa15e832d27128e0b21a296bc7c
parentf2e6a99a08c86821da6219e3662c868dc1665266 (diff)
downloadrust-2e4ef8e72c5e662cc9fe536ff019ab4d5802db84.tar.gz
rust-2e4ef8e72c5e662cc9fe536ff019ab4d5802db84.zip
Clippy Lints page - Fix path watch triggering
-rw-r--r--util/gh-pages/script.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/gh-pages/script.js b/util/gh-pages/script.js
index bd4293662a0..b961b7d2d96 100644
--- a/util/gh-pages/script.js
+++ b/util/gh-pages/script.js
@@ -270,7 +270,7 @@
             }, true);
 
             // Watch for changes in the URL path and update the search and lint display
-            $scope.$watch($location.path, function (newPath) {
+            $scope.$watch(function () { return $location.path(); }, function (newPath) {
                 const searchParameter = newPath.substring(1);
                 if ($scope.search !== searchParameter) {
                     $scope.search = searchParameter;
@@ -292,12 +292,12 @@
                 }
             });
 
-            $scope.$watch($location.search, function (newParameters) {
+            $scope.$watch(function () { return $location.search(); }, function (newParameters) {
                 if (!internalURLChange) {
                     loadFromURLParameters();
                 }
                 internalURLChange = false;
-            });
+            }, true);
 
             $scope.updatePath = function () {
                 if (debounceTimeout) {