Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jan 30, 2020
1 parent bef0d69 commit dda7b78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/tonic.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<title>Example - Tonic Display Embed</title>
<meta name="bitcoin-address" content="1DnLAqoznKsXkJ1xJrVyr29JSKmfwxC4x5">
<link rel='shortcut icon' type='image/x-icon' href='../images/favicon.ico' />
<script src="../dist/tonic.js"></script>
<!--<script src="../dist/tonic.js"></script>-->
<script src="https://tonicpow.com/tonic.js"></script>
</head>
<body>
<div>Tonic Display (Normal)</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tonicpow-embed",
"version": "0.1.1",
"version": "0.1.3",
"description": "TonicPow Embed helps manage visitor sessions and load any Tonic Widgets",
"main": "dist/tonic.js",
"author": {
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ TonicPow.captureVisitorSession = (customSessionId = '') => {
sessionId = urlParams.get(sessionName)
}
if (sessionId && sessionId.length > 0) {
this.setOreo(sessionName, sessionId, maxCookieAgeDays)
this.Storage.setStorage(sessionName, sessionId, (24 * 60 * 60 * maxCookieAgeDays))
TonicPow.setOreo(sessionName, sessionId, maxCookieAgeDays)
TonicPow.Storage.setStorage(sessionName, sessionId, (24 * 60 * 60 * maxCookieAgeDays))
}
}

// getVisitorSession will get the session if it exists
TonicPow.getVisitorSession = () => {
return this.Storage.getStorage(sessionName)
return TonicPow.Storage.getStorage(sessionName)
}

// iframeLoader() - replaces each Tonic div with a corresponding iframe (embed widget)
Expand Down

0 comments on commit dda7b78

Please sign in to comment.