better check for plugins wrapper removal

This commit is contained in:
Philipp Schaefer
2013-05-27 15:29:13 +02:00
parent 8d1dcf74fe
commit 85b7715c5d
2 changed files with 20 additions and 10 deletions

View File

@ -131,5 +131,5 @@ if (window.iitcLoaded && typeof setup === 'function') {
} // wrapper end
// inject code into site context
var script = document.createElement('script');
script.appendChild(document.createTextNode('(' + wrapper + ')();'));
script.appendChild(document.createTextNode('('+ wrapper +')();'));
(document.body || document.head || document.documentElement).appendChild(script);