mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-07 02:12:33 -05:00
11 lines
273 B
JavaScript
11 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")));
|
|
}
|
|
};
|