Skip to content

Commit 90588a9

Browse files
Fix IE11 search
1 parent 55e1104 commit 90588a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/librustdoc/html/static/main.js

+7
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@
4949

5050
var themesWidth = null;
5151

52+
if (!String.prototype.startsWith) {
53+
String.prototype.startsWith = function(searchString, position) {
54+
position = position || 0;
55+
return this.indexOf(searchString, position) === position;
56+
};
57+
}
58+
5259
function hasClass(elem, className) {
5360
if (elem && className && elem.className) {
5461
var elemClass = elem.className;

0 commit comments

Comments
 (0)