mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
Formatting
This commit is contained in:
@@ -25,13 +25,9 @@ let renderIntervalId = null;
|
|||||||
const audioUnlockEvents = ["pointerdown", "keydown", "touchstart"];
|
const audioUnlockEvents = ["pointerdown", "keydown", "touchstart"];
|
||||||
let layerOrder = [];
|
let layerOrder = [];
|
||||||
|
|
||||||
function spawnUserJavaScriptWorker() {
|
function spawnUserJavaScriptWorker() {}
|
||||||
|
|
||||||
}
|
function stopUserJavaScriptWorker() {}
|
||||||
|
|
||||||
function stopUserJavaScriptWorker() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
applyCanvasSettings(canvasSettings);
|
applyCanvasSettings(canvasSettings);
|
||||||
|
|
||||||
@@ -287,7 +283,7 @@ function applyPatch(assetId, patch) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const merged = normalizePayload({ ...existing, ...sanitizedPatch });
|
const merged = normalizePayload({ ...existing, ...sanitizedPatch });
|
||||||
console.log(merged)
|
console.log(merged);
|
||||||
const isAudio = isAudioAsset(merged);
|
const isAudio = isAudioAsset(merged);
|
||||||
if (sanitizedPatch.hidden) {
|
if (sanitizedPatch.hidden) {
|
||||||
hideAssetWithTransition(merged);
|
hideAssetWithTransition(merged);
|
||||||
@@ -824,7 +820,7 @@ function setVideoSource(element, asset) {
|
|||||||
}
|
}
|
||||||
applyVideoSource(element, next.objectUrl, asset);
|
applyVideoSource(element, next.objectUrl, asset);
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyVideoSource(element, objectUrl, asset) {
|
function applyVideoSource(element, objectUrl, asset) {
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ async function spawnUserJavaScriptWorker(asset) {
|
|||||||
console.error(`Unable to fetch asset with id:${id} from url:${asset.url}`, error);
|
console.error(`Unable to fetch asset with id:${id} from url:${asset.url}`, error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const blob = new Blob([assetSource], { type: 'application/javascript' });
|
const blob = new Blob([assetSource], { type: "application/javascript" });
|
||||||
const worker = new Worker(URL.createObjectURL(blob));
|
const worker = new Worker(URL.createObjectURL(blob));
|
||||||
worker.onmessage = (event) => {
|
worker.onmessage = (event) => {
|
||||||
console.log('Message from worker:', event.data);
|
console.log("Message from worker:", event.data);
|
||||||
}
|
};
|
||||||
worker.postMessage(data);
|
worker.postMessage(data);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,9 @@
|
|||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
/>
|
/>
|
||||||
<datalist id="channel-suggestions"></datalist>
|
<datalist id="channel-suggestions"></datalist>
|
||||||
<button type="submit" class="button block" onclick="onOpenOverlayButtonClick(event)">Open overlay</button>
|
<button type="submit" class="button block" onclick="onOpenOverlayButtonClick(event)">
|
||||||
|
Open overlay
|
||||||
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user