paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8de240794fb1d1010f757c16b5324a384788cd63
parent 64e97deb6b4c2e682413fe11a1475c9dc4ac4f10
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu,  2 May 2019 01:03:04 -0400

Fix error where roll.js wouldn't work in qutebrowser

Roll.js didn't get executed in qutebrowser since the browser expected
there to be () after a catch statement before the {}. (For example,
'catch { ... }' is invalid whereas 'catch(err) { ... }' is valid.

Diffstat:
Mpublic/js/roll.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/public/js/roll.js b/public/js/roll.js @@ -30,7 +30,8 @@ function stringRoll() { die = rollString.match(/d\d+/ig)[0]; die = die.substring(1); } - catch { + catch(err) { + console.log(err); alert("Invalid text input! See example for proper string format."); return; }