mirror of
https://github.com/komari-monitor/komari.git
synced 2026-11-24 17:10:54 +00:00
7 lines
226 B
JavaScript
7 lines
226 B
JavaScript
globalThis.queueMicrotask = function queueMicrotask(callback) {
|
|
if (typeof callback !== "function") {
|
|
throw new TypeError("queueMicrotask callback must be a function");
|
|
}
|
|
Promise.resolve().then(callback);
|
|
};
|
|
|