mirror of
https://github.com/asphyxia-core/plugin-template.git
synced 2026-09-07 09:55:18 -05:00
v1.50a example
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
$('#plugin-click').on('click', () => {
|
||||
emit('click', {}).then(() => {
|
||||
emit('click').then(() => {
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
|
||||
$('#plugin-random').on('click', () => {
|
||||
emit('random').then(result => {
|
||||
$('#random-number').text(result.data.number);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user