Last active
August 23, 2016 19:07
-
-
Save flavioso16/2ab0a7c88ed0d54cb6a68f3029ea49b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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