Prettier applied to whole project, prettier added to pre-commit hook

This commit is contained in:
Anarios committed 2024-01-15 01:39:46 +01:00
1 parent 47517ce0bd
commit b133adeecb
59 files changed
+912 -819

No files matched your search

+5 -18
View File
@@ -1,24 +1,11 @@
//--- Import Button Functions ---//
import {
getButtons,
} from "./src/buttons";
import { getButtons } from "./src/buttons";
//--- Import State Functions ---//
import {
isShorts,
setInitialState,
initExtConfig,
} from "./src/state";
import { isShorts, setInitialState, initExtConfig } from "./src/state";
//--- Import Video & Browser Functions ---//
import {
getBrowser,
isVideoLoaded,
cLog,
} from "./src/utils";
import { getBrowser, isVideoLoaded, cLog } from "./src/utils";
import {
addLikeDislikeEventListener,
createSmartimationObserver,
@@ -30,8 +17,8 @@ await initExtConfig();
let jsInitChecktimer = null;
let isSetInitialStateDone = false;
async function setEventListeners (evt) {
async function checkForJS_Finish () {
async function setEventListeners(evt) {
async function checkForJS_Finish() {
try {
if (isShorts() || (getButtons()?.offsetParent && isVideoLoaded())) {
clearInterval(jsInitChecktimer);