We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d767ee1 commit 2075509Copy full SHA for 2075509
src/librustdoc/html/static/main.js
@@ -52,6 +52,8 @@
52
53
var themesWidth = null;
54
55
+ var titleBeforeSearch = document.title;
56
+
57
if (!String.prototype.startsWith) {
58
String.prototype.startsWith = function(searchString, position) {
59
position = position || 0;
@@ -267,6 +269,7 @@
267
269
ev.preventDefault();
268
270
addClass(search, "hidden");
271
removeClass(document.getElementById("main"), "hidden");
272
+ document.title = titleBeforeSearch;
273
}
274
defocusSearchBar();
275
0 commit comments