Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
style: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 17, 2021
1 parent 09a2ddd commit 6108238
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/userscript/source/ui/EngineSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ export class EngineSettingsUi extends SettingsSectionUi<EngineSettings> {
const itext = ucfirst(this._host.i18n("ui.engine"));

// Our main element is a list item.
const element = $("<li/>", { id: "ks-" + toggleName });
const element = $("<li/>", { id: `ks-${toggleName}` });

const label = $("<label/>", {
//for: "toggle-" + toggleName,
text: itext,
});

const input = $("<input/>", {
id: "toggle-" + toggleName,
id: `toggle-${toggleName}`,
type: "checkbox",
});
this._options.$enabled = input;

element.append(input, label);

input.on("change", () => {
if (input.is(":checked") && options.enabled == false) {
if (input.is(":checked") && options.enabled === false) {
options.enabled = true;
//this._host.saveToKittenStorage();
this._host.engine.start(true);
} else if (!input.is(":checked") && options.enabled == true) {
} else if (!input.is(":checked") && options.enabled === true) {
options.enabled = false;
//this._host.saveToKittenStorage();
this._host.engine.stop(true);
Expand Down

0 comments on commit 6108238

Please sign in to comment.