summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2021-08-16 23:03:03 +0200
committernea <romangraef@gmail.com>2021-08-16 23:03:03 +0200
commitdc20f2ccb947b5bb2898a9989e8d38c937f97061 (patch)
treec43120a92c84a92858d4c22ab65de9c6e98a6b75
parent73d29ebbcca1e1e00ad54b7a2f43982dad81e1c2 (diff)
downloadpowercord-timezone-dc20f2ccb947b5bb2898a9989e8d38c937f97061.tar.gz
powercord-timezone-dc20f2ccb947b5bb2898a9989e8d38c937f97061.tar.bz2
powercord-timezone-dc20f2ccb947b5bb2898a9989e8d38c937f97061.zip
remove excess logging
-rw-r--r--index.js32
1 files changed, 15 insertions, 17 deletions
diff --git a/index.js b/index.js
index 7cb98dd..1d8caf8 100644
--- a/index.js
+++ b/index.js
@@ -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);
}
};