Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

slightly better external interface test

  • Loading branch information...
commit 38b8485791946427a1888672ae7def647e1c0c01 1 parent d2ac967
@carlsverre carlsverre authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 mixpanel-as3-lib/src/com/mixpanel/CookieBackend.as
View
8 mixpanel-as3-lib/src/com/mixpanel/CookieBackend.as
@@ -50,7 +50,13 @@ package com.mixpanel
}
public function initialize():IStorageBackend {
- if (!ExternalInterface.available) {
+ if (ExternalInterface.available) {
+ try {
+ ExternalInterface.addCallback("test_external_iface", null);
+ } catch (error:SecurityError) {
+ return null;
+ }
+ } else {
return null;
}
Please sign in to comment.
Something went wrong with that request. Please try again.