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 41770a6 commit f22d525Copy full SHA for f22d525
examples/index.html
@@ -36,7 +36,7 @@
36
<script
37
nonce="caffe67d7b989af3a1c7f4a1a6c79bd9fb2b4eb0"
38
type="text/javascript"
39
- src="../dist/index.dev.js"
+ src="../dist/index.umd.js"
40
></script>
41
42
@@ -77,12 +77,21 @@
77
}
78
});
79
80
+ // An error is thrown when instantiating loader with new options
81
+ try {
82
+ new google.maps.plugins.loader.Loader({apiKey: 'foo'});
83
+ } catch (e) {
84
+ console.log(e.message)
85
+ }
86
+
87
+ // The loader is a singleton and new loaders will resolve with the old
88
const anotherLoader = new google.maps.plugins.loader.Loader(
89
loader.options
90
);
91
anotherLoader.load().then(() => {
92
console.log("another loader was used with same options");
93
94
95
</script>
96
</head>
97
0 commit comments