File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 2828extern NSString * const IONIC_SCHEME;
2929extern NSString * const IONIC_FILE_SCHEME;
3030
31- -(void )setServerPath : (NSString *) path ;
3231-(void )setServerBasePath : (CDVInvokedUrlCommand*)command ;
3332-(void )getServerBasePath : (CDVInvokedUrlCommand*)command ;
3433
Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ @interface CDVWKWebViewEngine ()
9696@property (nonatomic , weak ) id <WKScriptMessageHandler > weakScriptMessageHandler;
9797@property (nonatomic , readwrite ) CGRect frame;
9898@property (nonatomic , strong ) NSString *userAgentCreds;
99- @property (nonatomic , assign ) BOOL useScheme;
10099@property (nonatomic , strong ) IONAssetHandler * handler;
101100
102101@property (nonatomic , readwrite ) NSString *CDV_LOCAL_SERVER;
@@ -756,12 +755,8 @@ -(void)getServerBasePath:(CDVInvokedUrlCommand*)command
756755-(void )setServerBasePath : (CDVInvokedUrlCommand*)command
757756{
758757 NSString * path = [command argumentAtIndex: 0 ];
759- if (self.useScheme ) {
760- self.basePath = path;
761- [self .handler setAssetPath: path];
762- } else {
763- [self setServerPath: path];
764- }
758+ self.basePath = path;
759+ [self .handler setAssetPath: path];
765760
766761 NSURLRequest * request = [NSURLRequest requestWithURL: [NSURL URLWithString: self .CDV_LOCAL_SERVER]];
767762 [(WKWebView *)_engineWebView loadRequest: request];
You can’t perform that action at this time.
0 commit comments