Skip to content

Commit

Permalink
fix(ios): change vfs load function in fontLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyunong committed Dec 11, 2024
1 parent af292a8 commit e20859d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions framework/ios/module/fontLoader/HippyFontLoaderModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,11 @@ - (void)saveFontfamily:(NSString *)fontFamily url:(NSString *)url filePath:(NSSt
}

__weak __typeof(self) weakSelf = self;
[self.bridge loadContentsAsynchronouslyFromUrl:urlString
method:@"Get"
params:nil
body:nil
queue:nil
progress:nil
completionHandler:^(NSData *data, NSDictionary *userInfo, NSURLResponse *response, NSError *error) {
[self.bridge loadContentsAsyncFromUrl:urlString
params:nil
queue:nil
progress:nil
completionHandler:^(NSData *data, NSDictionary *userInfo, NSURLResponse *response, NSError *error) {
__strong __typeof(weakSelf) strongSelf = weakSelf;
if (error) {
if (reject) {
Expand Down

0 comments on commit e20859d

Please sign in to comment.