Skip to content

Commit c175463

Browse files
authored
Update scripts.js
1 parent 651176d commit c175463

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/scripts.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
/* eslint no-var: "off", vars-on-top: "off", curly: "off" */
22

3-
// Get scripts & styles from:
4-
// `localhost` while developing
5-
// `unpkg.com` while demoing OR if a specific version is specified
3+
// String.startsWith() polyfill
64
if (!String.prototype.startsWith) {
75
String.prototype.startsWith = function(searchString, position){
86
position = position || 0;
97
return this.substr(position, searchString.length) === searchString;
108
};
119
}
1210

13-
14-
11+
// Get scripts & styles from:
12+
// `localhost` while developing
13+
// `unpkg.com` while demoing OR if a specific version is specified
1514
var loadScript = function (source, ver) {
1615
var external = source.startsWith('http');
1716
var from =

0 commit comments

Comments
 (0)