File tree Expand file tree Collapse file tree
dotcms-laravel/resources/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import './bootstrap' ;
2+
3+ // dotUVE is a global variable that is set by the dotCMS UVE JavaScript API
4+ if ( window . dotUVE ) {
5+ window . dotUVE . createUVESubscription ( 'changes' , ( changes ) => {
6+ window . location . reload ( ) ;
7+ } )
8+ } else {
9+ console . warn ( 'dotUVE is not available, you might experience issues with the the Universal Visual Editor' ) ;
10+ }
Original file line number Diff line number Diff line change @@ -8,3 +8,12 @@ import './bootstrap.js';
88import './styles/app.css' ;
99
1010console . log ( 'This log comes from assets/app.js - welcome to AssetMapper! 🎉' ) ;
11+
12+ // dotUVE is a global variable that is set by the dotCMS UVE JavaScript API
13+ if ( window . dotUVE ) {
14+ window . dotUVE . createUVESubscription ( 'changes' , ( changes ) => {
15+ window . location . reload ( ) ;
16+ } )
17+ } else {
18+ console . warn ( 'dotUVE is not available, you might experience issues with the the Universal Visual Editor' ) ;
19+ }
You can’t perform that action at this time.
0 commit comments