diff options
author | nea <romangraef@gmail.com> | 2021-08-16 23:03:03 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2021-08-16 23:03:03 +0200 |
commit | dc20f2ccb947b5bb2898a9989e8d38c937f97061 (patch) | |
tree | c43120a92c84a92858d4c22ab65de9c6e98a6b75 | |
parent | 73d29ebbcca1e1e00ad54b7a2f43982dad81e1c2 (diff) | |
download | powercord-timezone-dc20f2ccb947b5bb2898a9989e8d38c937f97061.tar.gz powercord-timezone-dc20f2ccb947b5bb2898a9989e8d38c937f97061.tar.bz2 powercord-timezone-dc20f2ccb947b5bb2898a9989e8d38c937f97061.zip |
remove excess logging
-rw-r--r-- | index.js | 32 |
1 files changed, 15 insertions, 17 deletions
@@ -18,26 +18,24 @@ const MessageContent = getModule((m) => m.type && m.type.displayName === 'Messag module.exports = class TimezonePowercord extends Plugin { async startPlugin () { - inject(INJECTION_ID_MESSAGE_RENDER, MessageContent, 'type', (args) => { - let x = transformMessageArray( - () => lookup(this.settings.get('timezone', 'GMT')))(args); - console.log(x); - return x; - }, true); - powercord.api.notices.sendAnnouncement('timezone-request-tz', { - color: 'green', - message: 'Timezone Powercord Plugin has been loaded.' - }); - powercord.api.settings.registerSettings(PLUGIN_ID, { - category: this.entityID, - label: 'Timezone Powercord Plugin', - render: Settings - }); + inject(INJECTION_ID_MESSAGE_RENDER, MessageContent, 'type', (args) => { + return transformMessageArray( + () => lookup(this.settings.get('timezone', 'GMT')))(args); + }, true); + powercord.api.notices.sendAnnouncement('timezone-request-tz', { + color: 'green', + message: 'Timezone Powercord Plugin has been loaded.' + }); + powercord.api.settings.registerSettings(PLUGIN_ID, { + category: this.entityID, + label: 'Timezone Powercord Plugin', + render: Settings + }); } async pluginWillUnload () { - uninject(INJECTION_ID_MESSAGE_RENDER); - powercord.api.settings.unregisterSettings(this.entityID); + uninject(INJECTION_ID_MESSAGE_RENDER); + powercord.api.settings.unregisterSettings(this.entityID); } }; |