Permalink
Browse files

fix for the case where we have not installed the content level api

  • Loading branch information...
1 parent 4dd8997 commit f347bc4a0d590983134a3c02e2fb8fed1a43bab7 @mixedpuppy mixedpuppy committed Jan 30, 2012
Showing with 4 additions and 0 deletions.
  1. +2 −0 data/mediatorapi.js
  2. +2 −0 data/servicesapi.js
View
@@ -2,6 +2,8 @@
/* vim: set ts=2 et sw=2 tw=80: */
// Insert the mediator api into unsafeWindow
+if (!unsafeWindow.navigator.wrappedJSObject.mozActivities)
+ unsafeWindow.navigator.wrappedJSObject.mozActivities = {};
if (!unsafeWindow.navigator.wrappedJSObject.mozActivities.mediation)
unsafeWindow.navigator.wrappedJSObject.mozActivities.mediation = {};
View
@@ -1,3 +1,5 @@
+if (!unsafeWindow.navigator.wrappedJSObject.mozActivities)
+ unsafeWindow.navigator.wrappedJSObject.mozActivities = {};
var activities = {};
var origin = null;

0 comments on commit f347bc4

Please sign in to comment.