Skip to content

Commit

Permalink
Fixed exception in @lagoonScripts directive
Browse files Browse the repository at this point in the history
  • Loading branch information
daredloco committed Aug 17, 2023
1 parent c87a7d0 commit 9fe9c4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/LagoonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ public function boot()

$packages = $packagesStr;
}else{
$packages = '['.$packages.']';
$packages = '[\''.$packages.'\']';
}

return '<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load(\'current\', {\'packages\':[\''.$packages.'\'], \'language\': \''.$localization.'\'});
google.charts.load(\'current\', {\'packages\':'.$packages.', \'language\': \''.$localization.'\'});
</script>';
});

Expand Down

0 comments on commit 9fe9c4a

Please sign in to comment.