[Pkg-mozext-commits] [personasplus] 46/76: Theme Disable Support for SeaMonkey

David Prévot taffit at moszumanska.debian.org
Fri Aug 4 21:45:06 UTC 2017


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

taffit pushed a commit to branch master
in repository personasplus.

commit f59cf4cdb8e00f26d4199bd4958707964d19ac1f
Author: Baris Derin <baris at barisderin.com>
Date:   Thu Aug 25 13:48:15 2016 +0300

    Theme Disable Support for SeaMonkey
    
    This just replaces LightWeightThemeManager.jsm module import location.
    SeaMonkey complains if it is not placed at the top.
---
 extension/bootstrap.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extension/bootstrap.js b/extension/bootstrap.js
index ebd191e..87616e2 100644
--- a/extension/bootstrap.js
+++ b/extension/bootstrap.js
@@ -74,12 +74,12 @@ var PersonasPlusBootstrapAddon = {
         Cu.unload("resource://personas/modules/personas.js");
         this.requestRemovePrerequisites(data);
         if (reason == ADDON_DISABLE || reason == ADDON_UNINSTALL) {
+            Cu.import("resource://gre/modules/LightweightThemeManager.jsm");
             if (LightweightThemeManager.currentTheme) {
                 if (LightweightThemeManager.currentTheme.id != "15131") {
                     var prompt = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
                     if (prompt.confirm(null, "Personas Plus", "Would you like to remove the current theme?")) {
                         try {
-                            Cu.import("resource://gre/modules/LightweightThemeManager.jsm");
                             LightweightThemeManager.forgetUsedTheme(LightweightThemeManager.currentTheme.id);
                         } catch (e) {
                             try {

-- 
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