Skip to content

Commit

Permalink
[core] support js file cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Dec 13, 2018
1 parent b105cf4 commit 2be6d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weex_core/Source/core/network/ios/default_request_handler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
DefaultRequestHandler::~DefaultRequestHandler() {}

void DefaultRequestHandler::Send(const char* instance_id, const char* url, Callback callback) {
NSURL* ns_url = [NSURL URLWithString:NSSTRING(url)];
[[WXSDKManager bridgeMgr] DownloadJS:ns_url completion:^(NSString *script) {
NSURL* nsURL = [NSURL URLWithString:NSSTRING(url)];
[[WXSDKManager bridgeMgr] DownloadJS:nsURL completion:^(NSString *script) {
if (!script) {
return;
}
Expand Down

0 comments on commit 2be6d17

Please sign in to comment.