Skip to content

Commit

Permalink
fix button vibration order
Browse files Browse the repository at this point in the history
  • Loading branch information
6a67 committed Dec 23, 2024
1 parent dd06dd0 commit 10424c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name JPDB Userscript (6a67)
// @namespace http://tampermonkey.net/
// @version 0.1.181
// @version 0.1.182
// @description Script for JPDB that adds some styling and functionality
// @match *://jpdb.io/*
// @grant GM_addStyle
Expand Down Expand Up @@ -1770,14 +1770,14 @@
playEffect(button);
}

if (USER_SETTINGS.enableButtonSound()) {
await playButtonSound(button);
}

if (USER_SETTINGS.advancedShortButtonVibration()) {
vibrateDeviceButton(button);
}

if (USER_SETTINGS.enableButtonSound()) {
await playButtonSound(button);
}

const form = button.closest('form');
if (form) {
form.submit();
Expand Down

0 comments on commit 10424c6

Please sign in to comment.