Skip to content

Commit f759c3f

Browse files
committed
added activity to send in checkouts
1 parent a939d02 commit f759c3f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/snippets/prefix-global.js.snippet

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
;(function(window) {
77

88
// make sure we do not have any Breinify instance already
9-
if (typeof window.Breinify === 'object') { return; }
9+
if (typeof window.Breinify === 'object') {
10+
const version = typeof window.Breinify.version === 'string' ? window.Breinify.version : 'n/a';
11+
const apiVersion = typeof window.Breinify.plugins === 'object' && typeof window.Breinify.plugins.api === 'object' && typeof window.Breinify.plugins.api.version === 'string' ? window.Breinify.plugins.api.version : 'n/a';;
12+
console.log('Breinify already available (version: ' + version + ', API version: ' + apiVersion + ')');
13+
14+
return;
15+
}
1016

1117
// create the dependencyScope
1218
const dependencyScope = {

0 commit comments

Comments
 (0)