feat:for reloading add "__dev__" case

This commit is contained in:
pengfei.zhou
2020-02-29 10:13:53 +08:00
committed by osborn
parent 0b0390edfe
commit d49f6274f2
2 changed files with 7 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ - (void)webSocket:(SRWebSocket *)webSocket didReceiveMessage:(id)message {
NSString *script = [dic valueForKey:@"script"];
for (NSValue *value in [[DoricContextManager instance] aliveContexts]) {
DoricContext *context = value.nonretainedObjectValue;
if ([source containsString:context.source]) {
if ([source containsString:context.source] || [context.source isEqualToString:@"__dev__"]) {
[context reload:script];
}
}