Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function shutdown(data, reason) {
try {
shutdownWebExtension(data, reason);
shutdownFrameScripts();
shutdownChannels();
shutdownEvents();
shutdownPrefsObserver();
shutdownAddonManager();
shutdownTelemetry(data, reason);
PubSub.clearAllSubscriptions();
} catch (err) {
log("shutdown error", err);
}
}
var clearAllSubscriptions = function () {
PubSub.clearAllSubscriptions();
}
export function unsubscribeAll(): void {
PubSub.clearAllSubscriptions();
}