Skip to content

Commit

Permalink
window. not required on meta
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefelipe committed Dec 16, 2020
1 parent 40f0359 commit 19a1784
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Services/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ public function printMultilanguageTags()
public function printJsVars()
{
echo "\n" . '<script>';
echo 'window.IS_PRODUCTION=Boolean("' . app()->isProduction() . '");';
echo 'window.LANGUAGE_CODE="' . Languages::code() . '";';
echo 'window.LANG="' . Languages::shortCode() . '";';
echo 'window.IS_MOBILE=Boolean("' . app()->isMobile() . '");';
echo 'window.IS_TABLET=Boolean("' . app()->isTablet() . '");';
echo 'window.IS_DESKTOP=Boolean("' . app()->isDesktop() . '");';
echo 'IS_PRODUCTION=Boolean("' . app()->isProduction() . '");';
echo 'LANGUAGE_CODE="' . Languages::code() . '";';
echo 'LANG="' . Languages::shortCode() . '";';
echo 'IS_MOBILE=Boolean("' . app()->isMobile() . '");';
echo 'IS_TABLET=Boolean("' . app()->isTablet() . '");';
echo 'IS_DESKTOP=Boolean("' . app()->isDesktop() . '");';
echo '</script>' . "\n";
}

Expand Down

0 comments on commit 19a1784

Please sign in to comment.