Skip to content

Commit

Permalink
Revert aplazame.js use of data attributes
Browse files Browse the repository at this point in the history
PrestaShop minifier strip data attributes.
  • Loading branch information
Maks3w committed Sep 14, 2016
1 parent 954b23a commit 67ac039
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions aplazame/views/templates/hook/header.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<script
type="text/javascript"
src="{$aplazame_js_uri|escape:'htmlall':'UTF-8'}"
data-api-host="{$aplazame_api_base_uri}"
data-aplazame="{$aplazame_public_key}"
data-sandbox="{if $aplazame_is_sandbox}true{else}false{/if}">
<script type="text/javascript" src="{$aplazame_js_uri|escape:'htmlall':'UTF-8'}"></script>

<script>
aplazame.init({
host: "{$aplazame_api_base_uri}",
publicKey: "{$aplazame_public_key}",
sandbox: "{if $aplazame_is_sandbox}true{else}false{/if}"
});
</script>

0 comments on commit 67ac039

Please sign in to comment.