added two apps, and better implementation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { NotificationBubbles } from "../../codeeditor-app/elements/notification-bubbles/notification-bubbles";
|
||||
|
||||
export function tryCatch(fn: Function) {
|
||||
try {
|
||||
fn();
|
||||
}
|
||||
catch (err) {
|
||||
var bubbles = <NotificationBubbles>parent.document.body.getElementsByTagName("notification-bubbles")[0];
|
||||
//@ts-ignore
|
||||
bubbles.add(err, 'syntax-error');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user