Commit 8f02a28f authored by's avatar
Browse files

fix case where ipick is included in <head>

parent 69e74bc4
......@@ -3,6 +3,15 @@ var ipickJsIsIncluded = false;
// Prevent ipick being loaded twice
if (ipickJsIsIncluded)
// This hack allows us to include the ipick even in the header
// of a page, since some templates might restrict us, on where
// we can easily include it.
if (!document.body) {
var thisFunction = arguments.callee;
setTimeout(function(){thisFunction(document, logo)}, 200);
ipickJsIsIncluded = true;
var style = `
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment