mirror of https://github.com/vitalif/phantomjs
Re-fix commit 3c665681
parent
6c57775e63
commit
985593221f
|
@ -96,7 +96,7 @@ bool Utils::injectJsInFrame(const QString &jsFilePath, const QString &scriptLook
|
|||
if ( jsFile.open(QFile::ReadOnly) ) {
|
||||
QString scriptBody = QString::fromUtf8(jsFile.readAll());
|
||||
// Remove CLI script heading
|
||||
if (scriptBody.startsWith("#!")) {
|
||||
if (scriptBody.startsWith("#!") && !jsFile.fileName().endsWith(COFFEE_SCRIPT_EXTENSION)) {
|
||||
scriptBody.prepend("//");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue