mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix insight/insight-tests.ts
This commit is contained in:
parent
08cdb4a903
commit
d55445f3ec
@ -12,10 +12,12 @@ var insight = new Insight({
|
||||
packageVersion: pkg.version
|
||||
});
|
||||
|
||||
// ask for permission the first time
|
||||
if (insight.optOut === undefined) {
|
||||
return insight.askPermission();
|
||||
}
|
||||
(()=> {
|
||||
// ask for permission the first time
|
||||
if (insight.optOut === undefined) {
|
||||
return insight.askPermission();
|
||||
}
|
||||
|
||||
insight.track('foo', 'bar');
|
||||
// recorded in Analytics as `/foo/bar`
|
||||
insight.track('foo', 'bar');
|
||||
// recorded in Analytics as `/foo/bar`
|
||||
})();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user