[Pkg-mozext-commits] [greasemonkey] 03/26: Fix @resource

David Prévot taffit at moszumanska.debian.org
Thu Feb 25 02:27:38 UTC 2016


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 614756bf1a9a7d0fa818b6f9cfedd033daf0c7f3
Author: janekptacijarabaci <janekptacijarabaci at seznam.cz>
Date:   Tue Dec 15 23:54:52 2015 +0100

    Fix @resource
---
 modules/scriptProtocol.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/scriptProtocol.js b/modules/scriptProtocol.js
index e91b022..fe00160 100644
--- a/modules/scriptProtocol.js
+++ b/modules/scriptProtocol.js
@@ -139,9 +139,9 @@ var ScriptProtocol = {
     for (var i = 0, resource = null; resource = script.resources[i]; i++) {
       if (resource.name == m[2]) {
         var uri = null;
-        if (resource.url) {
+        if (resource.file_url) {
           // In child scope, IPCScript gives us the URL to the file.
-          uri = GM_util.uriFromUrl(resource.url);
+          uri = GM_util.uriFromUrl(resource.file_url);
         } else {
           // In parent scope we have the raw script, with file intact.
           uri = GM_util.getUriFromFile(resource.file);

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