As per issue #14, when using the filemanager plugin in Chrome, if the X-Content-Type-Options: nosniff header is sent, strict MIME type checking will be enabled which prevents the settings.js.php file being executed on the client side.
This change replaces the injectScript call with the use of the jQuery.get method to retrieve the contents of the file and eval it; allowing for the file to be included regardless of MIME type.
As per issue #14, when using the filemanager plugin in Chrome, if the
X-Content-Type-Options: nosniff
header is sent, strict MIME type checking will be enabled which prevents thesettings.js.php
file being executed on the client side.This change replaces the
injectScript
call with the use of thejQuery.get
method to retrieve the contents of the file andeval
it; allowing for the file to be included regardless of MIME type.