Skip to content

Commit 10ba778

Browse files
Fix undefined-access in prerender
1 parent 5b10183 commit 10ba778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ScreenWakeLock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* `ref.release()`.
4545
*/
4646
export function release() {
47-
sentinel.release();
47+
sentinel?.release();
4848
sentinel = null;
4949
}
5050

0 commit comments

Comments
 (0)