[Pkg-mozext-commits] [greasemonkey] 03/35: Basic Pale Moon support.

David Prévot taffit at moszumanska.debian.org
Wed May 20 02:43:36 UTC 2015


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 22f7264d6c8f4d1c856d7479959bc9163718a850
Author: Crazycatz00 <crazycatz.0x00 at gmail.com>
Date:   Thu Feb 12 16:10:12 2015 -0500

    Basic Pale Moon support.
---
 content/scratchpad-overlay.js | 9 ++++++++-
 install.rdf                   | 9 +++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/content/scratchpad-overlay.js b/content/scratchpad-overlay.js
index f4b6608..bc3e309 100644
--- a/content/scratchpad-overlay.js
+++ b/content/scratchpad-overlay.js
@@ -24,7 +24,14 @@ window.addEventListener('load', function() {
 
     if (!Scratchpad.initialized) return;
 
-    Scratchpad.editor.setCursor({line: 0, ch: 0});
+    if ('function' == typeof Scratchpad.editor.setCursor) {
+      // Firefox >= 28
+      Scratchpad.editor.setCursor({line: 0, ch: 0});
+    } else {
+      // Firefox <= 27
+      Scratchpad.editor.setCaretPosition(0, 0);
+    }
+
     clearInterval(initializeCheckTimer);
   }
   initializeCheckTimer = setInterval(moveCursorToTop, 20);
diff --git a/install.rdf b/install.rdf
index b363f09..df8f519 100644
--- a/install.rdf
+++ b/install.rdf
@@ -50,6 +50,15 @@
       </Description>
     </em:targetApplication>
 
+    <!-- Pale Moon -->
+    <em:targetApplication>
+      <Description>
+        <em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
+        <em:minVersion>25.0</em:minVersion>
+        <em:maxVersion>25.*</em:maxVersion>
+      </Description>
+    </em:targetApplication>
+
   </Description>
 
 </RDF>

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



More information about the Pkg-mozext-commits mailing list