Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1d44d3a

Browse files
committed
Unbreak shelldb
1 parent 9a4423b commit 1d44d3a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sky/shell/ios/sky_surface.mm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ - (void)notifySurfaceCreation {
125125
}
126126

127127
- (NSString*)skyInitialLoadURL {
128+
NSUserDefaults *standardDefaults = [NSUserDefaults standardUserDefaults];
129+
NSString *target = [standardDefaults stringForKey:@"target"];
130+
NSString *server = [standardDefaults stringForKey:@"server"];
131+
if (server && target) {
132+
return [NSString stringWithFormat:@"http://%@/%@", server, target];
133+
}
128134
return [NSBundle mainBundle].infoDictionary[@"org.domokit.sky.load_url"];
129135
}
130136

0 commit comments

Comments
 (0)