We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 651176d commit c175463Copy full SHA for c175463
docs/scripts.js
@@ -1,17 +1,16 @@
1
/* eslint no-var: "off", vars-on-top: "off", curly: "off" */
2
3
-// Get scripts & styles from:
4
-// `localhost` while developing
5
-// `unpkg.com` while demoing OR if a specific version is specified
+// String.startsWith() polyfill
6
if (!String.prototype.startsWith) {
7
String.prototype.startsWith = function(searchString, position){
8
position = position || 0;
9
return this.substr(position, searchString.length) === searchString;
10
};
11
}
12
13
-
14
+// Get scripts & styles from:
+// `localhost` while developing
+// `unpkg.com` while demoing OR if a specific version is specified
15
var loadScript = function (source, ver) {
16
var external = source.startsWith('http');
17
var from =
0 commit comments