This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| requirejs.config({ | |
| baseUrl: '/js', | |
| deps: ['main', 'inspectlet'], | |
| paths: { | |
| //other paths | |
| 'inspectlet': 'apps/inspectlet/inspectlet', | |
| //jquery below is only as example - not needed | |
| 'jquery': '../bower/jquery/dist/jquery', | |
| 'jqueryui': '../bower/jquery-ui/jquery-ui', | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define([], function () { | |
| return (function () { | |
| function ldinsp(){ | |
| if(typeof window.__inspld != "undefined") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); }; | |
| window.__insp = window.__insp || []; | |
| __insp.push(['wid', <<your_inspectlet_id>>]); |