git.iko.soy
/
jsaddle
readme
files
commits
refs
on
master
help
sign in
Allow opening of urls in web browser, email etc.
260aade
Hamish Mackenzie
10 years ago
jsaddle-wkwebview/cbits-cocoa/AppDelegate.m
+4
compare with master
unified
split
@@ -60,3 +60,7 @@ void runInWKWebView(HsStablePtr handler, const char * _Nonnull progName) {
60
}
60
}
61
}
61
}
62
62
63
+
BOOL openApp(NSURL * url) {
64
+
NSWorkspace *workspace = [NSWorkspace sharedWorkspace];
65
+
return
[workspace openURL:url];
66
+
}
jsaddle-wkwebview/cbits-uikit/AppDelegate.m
+8
@@ -55,3 +55,11 @@ void runInWKWebView(HsStablePtr handler, const char * _Nonnull progName) {
55
}
55
}
56
}
56
}
57
57
58
+
BOOL openApp(NSURL * url) {
59
+
UIApplication *app = [UIApplication sharedApplication];
60
+
if
([app canOpenURL:url]) {
61
+
[app open:url];
62
+
return
true
;
63
+
}
64
+
return
false
;
65
+
}
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list