Created
July 20, 2016 16:31
-
-
Save flavioso16/9c74ba40781266fa06ff4d2e37a62520 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=1'; | |
script.onload = function () { | |
argosChromeShare.init | |
({ | |
chromeAppID: 21, | |
authKey: '6efvy5qf4xi529', | |
serviceWorkerURI: 'https://argos4.me/service-worker.min.js', | |
manifestURI: 'https://argos4.me/manifest.json', | |
subscribe: true, | |
segmentacao: 'Home', | |
welcomeMeta: { | |
title: 'Título Bem-vindo', | |
link: 'https://www.latam.com/pt_br', | |
logoURI: 'https://s3-sa-east-1.amazonaws.com/sba-support-files/TAM/latam-logo.png', | |
message: 'Mensagem de Bem vindo!' | |
} | |
}); | |
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