Skip to content

Instantly share code, notes, and snippets.

@flavioso16
Last active August 23, 2016 19:07
Show Gist options
  • Save flavioso16/2ab0a7c88ed0d54cb6a68f3029ea49b4 to your computer and use it in GitHub Desktop.
Save flavioso16/2ab0a7c88ed0d54cb6a68f3029ea49b4 to your computer and use it in GitHub Desktop.
var script = document.createElement('script');
script.src = 'https://apps.argos4.me/tool/scripts/chrome.js?v=2';
script.onload = function () {
argosChromeShare.init
({
chromeAppID: 23,
authKey: 'c6rek02iuhld6lxr',
serviceWorkerURI: 'https://parceiroambev.com.br/sw.min.js',
manifestURI: 'https://parceiroambev.com.br/manifest.json',
subscribe: true,
segmentacao: 'Home',
welcomeMeta: {
title: 'Parceiro Ambev',
link: 'https://parceiroambev.com.br/',
logoURI: 'https://s3-sa-east-1.amazonaws.com/sba-support-files/ambev/logo-ambev.png',
message: 'Cadastro realizado com sucesso :)'
}
});
function onSucessOptin(response) {
console.log('Optin success: ', response)
}
function onErrorOptin() {
console.log('Optin error');
}
};
document.head.appendChild(script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment