[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [216] Backport r203: Fixes the wrong syntax in
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [216] Backport r203: Fixes the wrong syntax in Epiphany |
Date: |
Sat, 26 Nov 2011 10:46:49 +0000 |
Revision: 216
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=216
Author: valkov
Date: 2011-11-26 10:46:48 +0000 (Sat, 26 Nov 2011)
Log Message:
-----------
Backport r203: Fixes the wrong syntax in Epiphany
Revision Links:
--------------
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=203
Modified Paths:
--------------
branches/0.0.10/src/lm_inject_script_in_page.js
Property Changed:
----------------
branches/0.0.10/
Property changes on: branches/0.0.10
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/0.0.9:94
/branches/task-11216:102-156
/trunk:186,191
+ /branches/0.0.9:94
/branches/task-11216:102-156
/trunk:186,191,203
Modified: branches/0.0.10/src/lm_inject_script_in_page.js
===================================================================
--- branches/0.0.10/src/lm_inject_script_in_page.js 2011-11-26 10:45:21 UTC
(rev 215)
+++ branches/0.0.10/src/lm_inject_script_in_page.js 2011-11-26 10:46:48 UTC
(rev 216)
@@ -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] [216] Backport r203: Fixes the wrong syntax in Epiphany,
Ivaylo Valkov <=