mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-17 18:03:06 +09:00
10 lines
273 B
JavaScript
10 lines
273 B
JavaScript
this.onpush = function(event) {
|
|
var request = event.data.json();
|
|
if (request.type == "exception") {
|
|
throw new Error("Uncaught exception");
|
|
}
|
|
if (request.type == "rejection") {
|
|
event.waitUntil(Promise.reject(
|
|
new Error("Unhandled rejection")));
|
|
}
|
|
};
|