Fix a bug where the QR not being enabled could break JSON Navigation
This commit is contained in:
parent
61e1447a5f
commit
2a703f08a2
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 4chan X - Version 1.4.1 - 2014-03-12
|
||||
* 4chan X - Version 1.4.1 - 2014-03-13
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.4.1 - 2014-03-12
|
||||
* 4chan X - Version 1.4.1 - 2014-03-13
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
||||
@ -6536,6 +6536,9 @@
|
||||
flagsInput: function() {
|
||||
var flag, nodes;
|
||||
nodes = QR.nodes;
|
||||
if (!nodes) {
|
||||
return;
|
||||
}
|
||||
if (nodes.flagSelector) {
|
||||
$.rm(nodes.flagSelector);
|
||||
delete nodes.flagSelector;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Generated by CoffeeScript
|
||||
/*
|
||||
* 4chan X - Version 1.4.1 - 2014-03-12
|
||||
* 4chan X - Version 1.4.1 - 2014-03-13
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
||||
@ -6579,6 +6579,9 @@
|
||||
flagsInput: function() {
|
||||
var flag, nodes;
|
||||
nodes = QR.nodes;
|
||||
if (!nodes) {
|
||||
return;
|
||||
}
|
||||
if (nodes.flagSelector) {
|
||||
$.rm(nodes.flagSelector);
|
||||
delete nodes.flagSelector;
|
||||
|
||||
@ -583,6 +583,7 @@ QR =
|
||||
|
||||
flagsInput: ->
|
||||
{nodes} = QR
|
||||
return unless nodes
|
||||
if nodes.flagSelector
|
||||
$.rm nodes.flagSelector
|
||||
delete nodes.flagSelector
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user