File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
1-js/13-modules/01-modules-intro Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -230,11 +230,12 @@ sayHi(); // Ready to serve, *!*Pete*/!*!
230
230
231
231
The object ` import.meta ` contains the information about the current module.
232
232
233
- Its content depends on the environment. In the browser, it contains the url of the script, or a current webpage url if inside HTML:
233
+ Its content depends on the environment. In the browser, it contains the URL of the script, or a current webpage URL if inside HTML:
234
234
235
235
``` html run height=0
236
236
<script type =" module" >
237
- alert (import .meta.url); // script url (url of the html page for an inline script)
237
+ alert (import .meta.url); // script URL
238
+ // for an inline script - the URL of the current HTML-page
238
239
< / script>
239
240
` ` `
240
241
You can’t perform that action at this time.
0 commit comments