Skip to content

Commit

Permalink
issue fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
greyexpert committed Sep 1, 2014
1 parent 4116001 commit 5e69e2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion controllers/hint.php
Expand Up @@ -66,6 +66,12 @@ private function getMarkup( $html, $topCorner, $bottomCorner, $rightCorner )
'rightCorner' => $rightCorner
);

$beforeIncludesScript = $document->getScriptBeforeIncludes();
if ( !empty($beforeIncludesScript) )
{
$responce['beforeIncludes'] = $beforeIncludesScript;
}

foreach ( $document->getScripts() as $script )
{
$responce['scriptFiles'][] = $script;
Expand All @@ -82,7 +88,7 @@ private function getMarkup( $html, $topCorner, $bottomCorner, $rightCorner )
{
$responce['styleDeclarations'] = $styleDeclarations;
}

$styleSheets = $document->getStyleSheets();
if ( !empty($styleSheets) )
{
Expand Down

0 comments on commit 5e69e2c

Please sign in to comment.