Skip to content

Commit b200286

Browse files
committed
[Fix #17] messageSubscribers should be mutable array.
1 parent 9241360 commit b200286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quark-shell/QSHWebViewDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ - (void)subscribeMessage:(NSString *)name withCallback:(WebScriptObject *)callba
417417
[self.messageSubscribers[name] addObject:callback];
418418
}
419419
else {
420-
self.messageSubscribers[name] = @[callback];
420+
self.messageSubscribers[name] = [NSMutableArray arrayWithObject:callback];
421421
}
422422
}
423423

0 commit comments

Comments
 (0)