From 4a7ff381963e24f5cdcad2d9f74fc07a9c251650 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 3 Jan 2019 21:48:50 +0100 Subject: [PATCH] Update GoogleTranslateOption.plugin.js --- Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js b/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js index 5e803bcad9..dafdfbc5f8 100644 --- a/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js +++ b/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js @@ -576,6 +576,7 @@ class GoogleTranslateOption { let textarea = wrapper.querySelector("textarea"); if (textarea) { var buttoncontainer = wrapper.querySelector(BDFDB.dotCN.textareapickerbuttons); + if (!buttoncontainer) return; var button = $(this.translateButtonMarkup)[0]; $(button) .on("click." + this.getName(), () => {