[Pkg-mozext-commits] [personasplus] 01/09: Offer survey on upgrade

David Prévot taffit at moszumanska.debian.org
Sun May 1 20:46:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository personasplus.

commit 8a11fbf174845857bbef33e1597ad499e8518fa4
Author: Michael Kaply <consulting at kaply.com>
Date:   Tue Apr 26 15:42:19 2016 -0500

    Offer survey on upgrade
---
 extension/content/personas.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/extension/content/personas.js b/extension/content/personas.js
index 57af8ee..656f96d 100644
--- a/extension/content/personas.js
+++ b/extension/content/personas.js
@@ -320,6 +320,14 @@ var PersonaController = {
         Cu.import("resource://gre/modules/AddonManager.jsm", this);
         this.AddonManager.getAddonByID(PERSONAS_EXTENSION_ID,
             function(aAddon) {
+                var lastversion = this._prefs.get("lastversion");
+                if (Services.vc.compare(aAddon.version, lastversion) > 0) {
+                    Services.obs.addObserver({
+                        observe: function() {
+                            Services.obs.removeObserver(this, "sessionstore-windows-restored", false);
+                            window.openUILinkIn("http://goo.gl/forms/6E2DiOVPNe", "tab");
+                        }}, "sessionstore-windows-restored", false);
+                }
                 this._prefs.set("lastversion", aAddon.version);
             }.bind(this));
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/personasplus.git



More information about the Pkg-mozext-commits mailing list