aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks
diff options
context:
space:
mode:
Diffstat (limited to 'data/tweaks')
-rw-r--r--data/tweaks/bug-page-mod.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js
index d0f8095..9be8551 100644
--- a/data/tweaks/bug-page-mod.js
+++ b/data/tweaks/bug-page-mod.js
@@ -33,7 +33,7 @@
* ***** END LICENSE BLOCK *****
*/
-function TweakOnMessageHandler(msg, nextHandler) {
+function TweakOnMessageHandler(msg, nextHandlerList) {
switch (msg.cmd) {
case "Unhandled":
break;
@@ -42,7 +42,10 @@ function TweakOnMessageHandler(msg, nextHandler) {
break;
default:
if (nextHandler) {
- nextHandler(msg);
+ var nextHandler = nextHandlerList.splice(0, 1);
+ if (nextHandler[0]) {
+ nextHandler[0](msg, nextHandlerList);
+ }
}
else {
console.error("Error: unknown RPC call " + msg.toSource());