Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -1,3 +1,8 @@
|
|||
function foo() {
|
||||
return arguments.callee.name;
|
||||
function filename() {
|
||||
// get the current script's URL
|
||||
// or in the event of an embedded script, fall back to the document URL
|
||||
const src = document.currentScript.src || document.location.href;
|
||||
// parse out just the file name from the URL
|
||||
// (no trailing slashes, search params or anchor fragments)
|
||||
return src.replace(/[?#].*/, '').match(/[^\/]+/g);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
(function(){alert(arguments.callee.name);}())
|
||||
function filename() {
|
||||
const src = import.meta.url;
|
||||
return src.replace(/[?#].*/, '').match(/[^\/]+/g);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue