Permalink
Browse files

copy all core files back

  • Loading branch information...
1 parent 350079c commit 4d246ae8302f7afa62b66a530d61600f4c42cb45 @mhammond mhammond committed Jun 5, 2012
View
@@ -562,31 +562,9 @@ function install(aParams, aReason) {
}
function startup(aParams, aReason) {
- // We can't know the order these things will initialize in...
- let realStartup = function() {
- OverlayManager.init(aParams, function() {
- // addon specific stuff we need to start before
- // applying our overlays
- let tmp = {}
- Cu.import("resource://socialapi/modules/provider.js", tmp);
- let createCallback = function(manifest) {
- return new tmp.SocialProvider(manifest);
- }
- Cu.import("resource://socialapi/modules/registry.js", tmp);
- tmp.initialize(createCallback);
- });
- };
let res = Services.io.getProtocolHandler("resource").QueryInterface(Ci.nsIResProtocolHandler);
- if (res.hasSubstitution("socialapi")) {
- // the core has already initialized...
- realStartup();
- } else {
- Services.obs.addObserver({
- observe: function(aSubject, aTopic, aData) {
- realStartup();
- }
- }, "socialapi-core-startup", false);
- }
+ res.setSubstitution("socialapi", aParams.resourceURI);
+ OverlayManager.init(aParams, function() {});
}
function shutdown(aParams, aReason) {
@@ -0,0 +1,3 @@
+locale socialapi en-US locale/en-US/
+
+resource socialapi ./
@@ -0,0 +1,4 @@
+installoffer.notificationbar="This site supports additional functionality for Firefox, would you like to install it?"
+dontask.label=Don't ask again
+dontask.accesskey=d
+yes.label=Yes
Oops, something went wrong.

0 comments on commit 4d246ae

Please sign in to comment.