Added more customization options

This commit is contained in:
Jas Singh
2024-07-16 00:11:55 -07:00
parent d1844c22fb
commit f5aa300512
2 changed files with 204 additions and 53 deletions

View File

@@ -10,11 +10,13 @@ const Actions = (notif, notifs) => {
class_name: "notification-action-buttons menu",
on_primary_click: () => {
if (action.id.includes("scriptAction:-")) {
App.closeWindow("notificationsmenu");
Utils.execAsync(
`${action.id.replace("scriptAction:-", "")}`,
).catch((err) => console.error(err));
notifs.CloseNotification(notif.id);
} else {
App.closeWindow("notificationsmenu");
notif.invoke(action.id);
}
},