mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-27 13:08:30 +00:00
Initial commit for modular FrankerFaceZ rewrite.
This commit is contained in:
parent
b74fdaa22b
commit
f1377bc989
27 changed files with 2717 additions and 1034 deletions
15
src/ui/notifications.js
Normal file
15
src/ui/notifications.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
var FFZ = window.FrankerFaceZ;
|
||||
|
||||
FFZ.prototype.show_notification = function(message) {
|
||||
window.noty({
|
||||
text: message,
|
||||
theme: "ffzTheme",
|
||||
layout: "bottomCenter",
|
||||
closeWith: ["button"]
|
||||
}).show();
|
||||
}
|
||||
|
||||
|
||||
FFZ.ws_commands.message = function(message) {
|
||||
this.show_notification(message);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue