File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/LiveDevelopment/BrowserScripts Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments