Temporarily disable BetterImageViewer

This commit is contained in:
_Lighty_ 2020-07-21 10:15:29 +02:00 committed by GitHub
parent 4034e36abe
commit f57f1b05d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,7 @@ var BetterImageViewer = (() => {
twitter_username: ''
}
],
version: '1.3.4',
version: '1.3.5',
description: 'Move between images in the entire channel with arrow keys, image zoom enabled by clicking and holding, scroll wheel to zoom in and out, hold shift to change lens size. Image previews will look sharper no matter what scaling you have, and will take up as much space as possible.',
github: 'https://github.com/1Lighty',
github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/BetterImageViewer/BetterImageViewer.plugin.js'
@ -46,7 +46,7 @@ var BetterImageViewer = (() => {
{
title: 'fixed',
type: 'fixed',
items: ['Fixed image zoom.']
items: ['Terminate plugin until fix is found.']
}
],
defaultConfig: [
@ -1318,6 +1318,7 @@ var BetterImageViewer = (() => {
} catch (e) {}
}
onStart() {
return;
if (!overlayDOMNode) {
overlayDOMNode = document.createElement('div');
overlayDOMNode.className = 'biv-overlay';
@ -1471,6 +1472,7 @@ var BetterImageViewer = (() => {
}
onStop() {
return;
this.promises.state.cancelled = true;
Patcher.unpatchAll();
Dispatcher.unsubscribe('MESSAGE_DELETE', this.handleMessageDelete);