add dummy notif
This commit is contained in:
parent
9c91222fff
commit
e75c575a32
|
@ -15,6 +15,7 @@ import { ClientLogger as Logger, ClientIPC, Utils } from 'common';
|
||||||
import { BuiltinManager, EmoteModule, ReactDevtoolsModule, VueDevtoolsModule, TrackingProtection, E2EE } from 'builtin';
|
import { BuiltinManager, EmoteModule, ReactDevtoolsModule, VueDevtoolsModule, TrackingProtection, E2EE } from 'builtin';
|
||||||
import electron from 'electron';
|
import electron from 'electron';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import { setTimeout } from 'timers';
|
||||||
|
|
||||||
const tests = typeof PRODUCTION === 'undefined';
|
const tests = typeof PRODUCTION === 'undefined';
|
||||||
const ignoreExternal = false;
|
const ignoreExternal = false;
|
||||||
|
@ -90,6 +91,23 @@ class BetterDiscord {
|
||||||
Events.emit('ready');
|
Events.emit('ready');
|
||||||
Events.emit('discord-ready');
|
Events.emit('discord-ready');
|
||||||
BuiltinManager.initAll();
|
BuiltinManager.initAll();
|
||||||
|
|
||||||
|
function showDummyNotif() { // eslint-disable-line no-inner-declarations
|
||||||
|
Notifications.add('Dummy Notification', [
|
||||||
|
{
|
||||||
|
text: 'Show Again', onClick: function () {
|
||||||
|
setTimeout(showDummyNotif, 5000);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Ignore', onClick: function () {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
showDummyNotif();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
Logger.err('main', ['FAILED TO LOAD!', err]);
|
Logger.err('main', ['FAILED TO LOAD!', err]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue