[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [203] Fixes the wrong sytax in Epiphany, becaus
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [203] Fixes the wrong sytax in Epiphany, because of the out of scope return . |
Date: |
Wed, 28 Sep 2011 20:15:07 +0000 |
Revision: 203
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=203
Author: valkov
Date: 2011-09-28 20:15:04 +0000 (Wed, 28 Sep 2011)
Log Message:
-----------
Fixes the wrong sytax in Epiphany, because of the out of scope return.
Modified Paths:
--------------
trunk/src/lm_inject_script_in_page.js
Modified: trunk/src/lm_inject_script_in_page.js
===================================================================
--- trunk/src/lm_inject_script_in_page.js 2011-09-28 20:12:48 UTC (rev
202)
+++ trunk/src/lm_inject_script_in_page.js 2011-09-28 20:15:04 UTC (rev
203)
@@ -54,5 +54,9 @@
setTimeout(inject_data, 0);
})();
- return;
+ // A return breaks the syntax in newer versions of Epiphany. Only
+ // in Greasemonkey the scope of the script is really a function
+ // and a return does not break syntax.
+ throw "Linterna Mágica left the Greasemonkey scope!"+
+ " Script was injected in page.";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [203] Fixes the wrong sytax in Epiphany, because of the out of scope return .,
Ivaylo Valkov <=