Temporarily disable BetterImageViewer
This commit is contained in:
parent
4034e36abe
commit
f57f1b05d5
|
@ -37,7 +37,7 @@ var BetterImageViewer = (() => {
|
||||||
twitter_username: ''
|
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.',
|
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: 'https://github.com/1Lighty',
|
||||||
github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/BetterImageViewer/BetterImageViewer.plugin.js'
|
github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/BetterImageViewer/BetterImageViewer.plugin.js'
|
||||||
|
@ -46,7 +46,7 @@ var BetterImageViewer = (() => {
|
||||||
{
|
{
|
||||||
title: 'fixed',
|
title: 'fixed',
|
||||||
type: 'fixed',
|
type: 'fixed',
|
||||||
items: ['Fixed image zoom.']
|
items: ['Terminate plugin until fix is found.']
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
defaultConfig: [
|
defaultConfig: [
|
||||||
|
@ -1318,6 +1318,7 @@ var BetterImageViewer = (() => {
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
onStart() {
|
onStart() {
|
||||||
|
return;
|
||||||
if (!overlayDOMNode) {
|
if (!overlayDOMNode) {
|
||||||
overlayDOMNode = document.createElement('div');
|
overlayDOMNode = document.createElement('div');
|
||||||
overlayDOMNode.className = 'biv-overlay';
|
overlayDOMNode.className = 'biv-overlay';
|
||||||
|
@ -1471,6 +1472,7 @@ var BetterImageViewer = (() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
onStop() {
|
onStop() {
|
||||||
|
return;
|
||||||
this.promises.state.cancelled = true;
|
this.promises.state.cancelled = true;
|
||||||
Patcher.unpatchAll();
|
Patcher.unpatchAll();
|
||||||
Dispatcher.unsubscribe('MESSAGE_DELETE', this.handleMessageDelete);
|
Dispatcher.unsubscribe('MESSAGE_DELETE', this.handleMessageDelete);
|
||||||
|
|
Loading…
Reference in New Issue