Skip to content

Commit 02a1e11

Browse files
committed
fix: hot corners not working
1 parent 70b7f15 commit 02a1e11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5614,16 +5614,15 @@ function RemoteFunctions(config = {}) {
56145614
// init the hot corner after the DOM is ready
56155615
if (document.readyState === 'loading') {
56165616
document.addEventListener('DOMContentLoaded', () => {
5617-
// make sure that also the configs are present
5618-
if (!_hotCorner && config.icons && config.styles) {
5617+
if (!_hotCorner) {
56195618
_hotCorner = new HotCorner();
56205619
_hotCorner.updateState(config.mode === 'preview');
56215620
}
56225621
});
56235622
} else {
56245623
// or if the DOM is already ready then init directly
56255624
setTimeout(() => {
5626-
if (!_hotCorner && config.icons && config.styles) {
5625+
if (!_hotCorner) {
56275626
_hotCorner = new HotCorner();
56285627
_hotCorner.updateState(config.mode === 'preview');
56295628
}

0 commit comments

Comments
 (0)