Wrapping exception js in Sfjs check and also loading base_js Sfjs if needed
This commit is contained in:
parent
c995f1c814
commit
5fa42f11f3
@ -5,7 +5,7 @@
|
||||
them as JavaScript source code. Always use '/*' comments instead
|
||||
of '//' comments to avoid impossible-to-debug side-effects #}
|
||||
|
||||
if (typeof Sfjs === 'undefined') {
|
||||
if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
|
||||
Sfjs = (function() {
|
||||
"use strict";
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* This file is based on WebProfilerBundle/Resources/views/Profiler/base_js.html.twig.
|
||||
If you make any change in this file, verify the same change is needed in the other file. */
|
||||
/*<![CDATA[*/
|
||||
if (typeof Sfjs === 'undefined') {
|
||||
Sfjs = (function() {
|
||||
"use strict";
|
||||
|
||||
@ -275,5 +276,5 @@ Sfjs.addEventListener(document, 'DOMContentLoaded', function() {
|
||||
Sfjs.createToggles();
|
||||
Sfjs.createFilters();
|
||||
});
|
||||
|
||||
}
|
||||
/*]]>*/
|
||||
|
Reference in New Issue
Block a user