Packages
ex_debug_toolbar
0.5.0
A debug web toolbar for Phoenix projects to display all sorts of information about request
Current section
Files
Jump to
Current section
Files
web/static/js/toolbar/jquery.js
// Bootstrap expects a global jQuery object, which leads to a clash// between user's app and toolbar's jQuery.// 1. import jQuery from toolbar's packageimport $ from 'jquery';// 2. stash global jQuery if presentconst _jQuery = window.jQuery;const _$ = window.$;// 3. make toolbar's jQuery globalwindow.jQuery = $;window.$ = $;// 4. import bootstrap that adds plugins to global jQueryrequire('bootstrap-sass');// 5. make stashed jQuery global againwindow.jQuery = _jQuery;window.$ = _$;export default $;