From 9d791ec93b8b4ad6ec5cd015fcfeee46a06a96d4 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Fri, 17 Mar 2023 08:02:53 -0300 Subject: [PATCH] bring back the buttons -- turns out they're useful? --- static/application.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/application.js b/static/application.js index fe970b0..97f7c3c 100644 --- a/static/application.js +++ b/static/application.js @@ -94,7 +94,10 @@ var haste = function (appName, options) { this.options = options; this.configureShortcuts(); this.configureButtons(); - $('#box2').hide(); // hide the whole hastebin box + // If Twitter is disabled, hide the button + if (!options.twitter) { + $('#box2 .twitter').hide(); + } }; // Set the page title - include the appName