IAN v1.0.8

This commit is contained in:
1Lighty 2020-10-08 20:37:28 +02:00
parent 1005f43dd7
commit 23f120d835
2 changed files with 156 additions and 150 deletions

View File

@ -1,4 +1,10 @@
# [InAppNotifications](https://1lighty.github.io/BetterDiscordStuff/?plugin=InAppNotifications "InAppNotifications") Changelog
### 1.0.8
- Fixed error on canary.
### 1.0.7
- Fixed not working.
### 1.0.6
- Changed to module.exports because useless backwards incompatbile changes are the motto for BBD apparently.

View File

@ -41,7 +41,7 @@ module.exports = (() => {
twitter_username: ''
}
],
version: '1.0.7',
version: '1.0.8',
description: 'Show a notification in Discord when someone sends a message, just like on mobile.',
github: 'https://github.com/1Lighty',
github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/InAppNotifications/InAppNotifications.plugin.js'
@ -93,7 +93,7 @@ module.exports = (() => {
{
title: 'Fixed',
type: 'fixed',
items: ['Fixed not working.']
items: ['Fixed error on canary.']
}
]
};
@ -163,7 +163,7 @@ module.exports = (() => {
onStart() {
try {
/* do not, under any circumstances, let this kill the plugin */
const CUSTOM_RULES = XenoLib._.cloneDeep(WebpackModules.getByProps('RULES', 'ALLOW_LINKS_RULES').RULES);
const CUSTOM_RULES = XenoLib._.cloneDeep(WebpackModules.getByProps('RULES').RULES);
for (let rule of Object.keys(CUSTOM_RULES)) CUSTOM_RULES[rule].raw = null;
for (let rule of ['paragraph', 'text', 'codeBlock', 'emoji', 'inlineCode']) CUSTOM_RULES[rule].raw = e => e.content;
for (let rule of ['autolink', 'br', 'link', 'newline', 'url']) delete CUSTOM_RULES[rule];