Browse Source

Update base.js

Problem occured during my dev
Jérémy M 11 years ago
parent
commit
fd17dcf005
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Resources/public/base.js

+ 1 - 1
Resources/public/base.js

@@ -1,6 +1,6 @@
 jQuery(document).ready(function() {
     jQuery('html').removeClass('no-js');
-    if (window.SONATA_CONFIG.CONFIRM_EXIT) {
+    if (window.SONATA_CONFIG && window.SONATA_CONFIG.CONFIRM_EXIT) {
         jQuery('.sonata-ba-form form').confirmExit();
     }