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

Commit

Permalink
style: Use strict equal
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 11, 2021
1 parent 7b1c0df commit afe0f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/userscript/source/ui/OptionsSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class OptionsSettingsUi extends SettingsSectionUi<OptionsSettings> {

// hack for style.
// If there are more UI options, split it to "getUIOption"
if (name == "style") {
if (name === "style") {
const input = element.children("input");
input.unbind("change");
input.on("change", () => {
Expand Down Expand Up @@ -174,7 +174,7 @@ export class OptionsSettingsUi extends SettingsSectionUi<OptionsSettings> {

triggerButton.on("click", () => {
let value;
if (name == "crypto") {
if (name === "crypto") {
value = window.prompt(
this._host.i18n("ui.trigger.crypto.set", [iname]),
mustExist(option.subTrigger).toFixed(2)
Expand Down

0 comments on commit afe0f5e

Please sign in to comment.