mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
be a bit more forgiving for invalid command
This commit is contained in:
parent
dec2eb702c
commit
2cee503ffd
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ export const initFullScreenBlocker = (IS_DEV: boolean): void => {
|
|||
skipTaskbar: true,
|
||||
frame: false,
|
||||
});
|
||||
const randomImgUrl = takeABreakCfg.motivationalImgs.length
|
||||
const randomImgUrl = takeABreakCfg.motivationalImgs?.length
|
||||
? takeABreakCfg.motivationalImgs[
|
||||
Math.floor(Math.random() * takeABreakCfg.motivationalImgs.length)
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue