Skip to content

Commit

Permalink
Enable inspect tool for debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
typcn committed Aug 2, 2016
1 parent 32869fb commit b1ba1de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bilibili/Browser/TWebView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ - (TWebView *)initWithRequest:(NSURLRequest *)req andConfig:(id)cfg setDelegate:
if (NSClassFromString(@"WKWebView")) {
if(!cfg){
wvConfig = [[WKWebViewConfiguration alloc] init];
#ifdef DEBUG
[wvConfig.preferences setValue:@YES forKey:@"developerExtrasEnabled"];
#endif
}else{
wvConfig = [cfg copy];
}
Expand Down
2 changes: 1 addition & 1 deletion bilibili/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>3102</string>
<string>3119</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down

0 comments on commit b1ba1de

Please sign in to comment.