Skip to content

Commit

Permalink
Forgot to change the other one lmao
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazza-231 committed Oct 22, 2023
1 parent 561c20d commit 30a81a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions addons/onion-skinning/userscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,7 @@ export default async function ({ addon, console, msg }) {
settingButton.appendChild(createButtonImage("settings"));

document.body.addEventListener("click", (e) => {
if (areSettingsOpen() && !e.target.matches("[class*=sa-onion-]")) {
setSettingsOpen(false);
}
if (areSettingsOpen() && !e.target.matches("[class*=sa-onion-]")) setSettingsOpen(false);
});

//
Expand Down
2 changes: 1 addition & 1 deletion addons/paint-snap/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function initUI({ addon, msg }) {
controlsGroup.appendChild(settingButton);

document.body.addEventListener("click", (e) => {
if (!e.target.matches("[class*=sa-paint-snap-]") && areSettingsOpen()) setSettingsOpen(false);
if (areSettingsOpen() && !e.target.matches("[class*=sa-paint-snap-]")) setSettingsOpen(false);
});

const settingsOpenUpdaters = [];
Expand Down

0 comments on commit 30a81a7

Please sign in to comment.