From 7afe1807b7577b2d5a39056a4fa190dcc226e170 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 5 Oct 2018 15:08:42 +0200 Subject: [PATCH] Merge sidebar js --- plugins/Sidebar/media/all.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/Sidebar/media/all.js b/plugins/Sidebar/media/all.js index c09d2ee4..ee9d3d1c 100644 --- a/plugins/Sidebar/media/all.js +++ b/plugins/Sidebar/media/all.js @@ -608,7 +608,7 @@ window.initScrollable = function () { })(this)); return this.tag.find("#privatekey-forgot").off("click, touchend").on("click touchend", (function(_this) { return function(e) { - _this.wrapper.displayConfirm("Remove saved prive key for this site?", "Forgot", function(res) { + _this.wrapper.displayConfirm("Remove saved private key for this site?", "Forgot", function(res) { if (!res) { return false; } @@ -729,8 +729,10 @@ window.initScrollable = function () { if (!_this.opened) { _this.container.remove(); _this.container = null; - _this.tag.remove(); - return _this.tag = null; + if (_this.tag) { + _this.tag.remove(); + return _this.tag = null; + } } }; })(this));