From 3e38d6d74fec76e3dd34a6eedb528c83399358ab Mon Sep 17 00:00:00 2001 From: Jeremy Mahieu Date: Fri, 1 May 2020 23:33:49 +0200 Subject: [PATCH] Longer toast time after upload --- js/inputbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/inputbar.js b/js/inputbar.js index c4561f3..3444fde 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -776,7 +776,7 @@ weechat.directive('inputBar', function() { // Show toast with delete link var toastImgur = $compile('
Image uploaded to Imgur. Delete?
')($scope)[0]; document.body.appendChild(toastImgur); - setTimeout(function() { document.body.removeChild(toastImgur); }, 5000); + setTimeout(function() { document.body.removeChild(toastImgur); }, 10000); // Log the delete hash to the console in case the toast was missed. console.log('An image was uploaded to imgur, delete it with $scope.imgurDelete(\'' + deleteHash + '\')');