mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Added sync config
This commit is contained in:
3
utils.js
3
utils.js
@@ -32,6 +32,9 @@ async function config() {
|
|||||||
SB.config = configProxy();
|
SB.config = configProxy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sync config
|
||||||
|
config();
|
||||||
|
|
||||||
// Function that can be used to wait for a condition before returning
|
// Function that can be used to wait for a condition before returning
|
||||||
async function wait(condition, timeout = 5000, check = 100) {
|
async function wait(condition, timeout = 5000, check = 100) {
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user