Skip to content

Instantly share code, notes, and snippets.

View inspectlet-requirejs-config.js
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',
},
View inspectlet-requirejs-module.js
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>>]);
You can’t perform that action at this time.