[PCCompat > Entities] Global: Add api.notices.sendToast
This commit is contained in:
parent
86a2e3b7cb
commit
c58dbac469
|
@ -18,6 +18,14 @@ window.powercord = {
|
||||||
unregisterCommand: (command) => {
|
unregisterCommand: (command) => {
|
||||||
goosemodScope.patcher.commands.remove(command);
|
goosemodScope.patcher.commands.remove(command);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
notices: {
|
||||||
|
sendToast: (_id, { header, content, type, buttons }) => {
|
||||||
|
// TODO: implement full toast in future instead of just small current GM toast
|
||||||
|
|
||||||
|
goosemodScope.showToast(content);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue