mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-22 07:44:54 +00:00
add custom delay
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
d51f62221f
commit
dc40dab9af
1 changed files with 9 additions and 1 deletions
|
@ -2,7 +2,15 @@ import {setUpFontAwesome} from "./fontAwesome";
|
|||
import {setUpI18n} from "./i18n";
|
||||
import {loadAllConfig} from "./configLoader";
|
||||
|
||||
function customDelay() {
|
||||
if (!!window.localStorage.getItem("customDelay")) {
|
||||
return new Promise((resolve => setTimeout(resolve, 5000)));
|
||||
} else {
|
||||
return Promise.resolve()
|
||||
}
|
||||
}
|
||||
|
||||
export function setUp() {
|
||||
setUpFontAwesome();
|
||||
return [setUpI18n(), loadAllConfig()]
|
||||
return [setUpI18n(), loadAllConfig(), customDelay()]
|
||||
}
|
Loading…
Reference in a new issue