mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
add lint command, lint and lint:fix project
This commit is contained in:
parent
430c7ad6ec
commit
93b609932d
23 changed files with 36916 additions and 25 deletions
|
@ -8,8 +8,8 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
|
|||
construct({ args, call }) {
|
||||
if (args[0] instanceof URL) args[0] = args[0].href;
|
||||
if (args[0].startsWith("blob:") || args[0].startsWith("data:")) {
|
||||
let data = syncfetch(client, args[0]);
|
||||
let id = Math.random().toString(8).slice(5);
|
||||
const data = syncfetch(client, args[0]);
|
||||
const id = Math.random().toString(8).slice(5);
|
||||
|
||||
args[0] = "/scramjet/worker?id=" + id;
|
||||
if (args[1] && args[1].type === "module") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue