Skip to content

Commit

Permalink
Get rid of unused widget variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Jan 3, 2024
1 parent f8366ab commit bc87b65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/javascript/packs/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
import {
WidgetInstance,
} from "friendly-challenge";
var friendlyChallengeWidgetInstance = WidgetInstance;

document.addEventListener("turbolinks:load", function () {
var doneCallback, element, options, widget;
var doneCallback, element, options;

doneCallback = function (solution) {
console.log(solution);
Expand All @@ -40,7 +39,7 @@ document.addEventListener("turbolinks:load", function () {
language: $("#captcha-widget").data("lang"),
};
console.log(options);
widget = new WidgetInstance(element, options);
new WidgetInstance(element, options);
// DO not uncomment, evil
// widget.reset();
}
Expand Down

0 comments on commit bc87b65

Please sign in to comment.