forked from GithubBackups/vichan
Suppress (maybe harmless) error on no postcontrols selector (happens on catalog)
This commit is contained in:
parent
a4312e7d16
commit
402a246174
@ -318,9 +318,11 @@ var script_settings = function(script_name) {
|
||||
|
||||
function init() {
|
||||
// store highlighted text for citeReply()
|
||||
document.querySelector('form[name="postcontrols"]').addEventListener('mouseup', function (e) {
|
||||
sessionStorage.quoteClipboard = window.getSelection().toString();
|
||||
});
|
||||
if (document.querySelector('form[name="postcontrols"]') !== null) {
|
||||
document.querySelector('form[name="postcontrols"]').addEventListener('mouseup', function (e) {
|
||||
sessionStorage.quoteClipboard = window.getSelection().toString();
|
||||
});
|
||||
}
|
||||
|
||||
// just enable jquery, almost every script requires it by now. more and more main.js functions are going to start requiring it
|
||||
$('.post-table-options').css('display', 'none');
|
||||
|
Loading…
x
Reference in New Issue
Block a user