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 28
28
extern NSString * const IONIC_SCHEME;
29
29
extern NSString * const IONIC_FILE_SCHEME;
30
30
31
- -(void )setServerPath : (NSString *) path ;
32
31
-(void )setServerBasePath : (CDVInvokedUrlCommand*)command ;
33
32
-(void )getServerBasePath : (CDVInvokedUrlCommand*)command ;
34
33
Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ @interface CDVWKWebViewEngine ()
96
96
@property (nonatomic , weak ) id <WKScriptMessageHandler > weakScriptMessageHandler;
97
97
@property (nonatomic , readwrite ) CGRect frame;
98
98
@property (nonatomic , strong ) NSString *userAgentCreds;
99
- @property (nonatomic , assign ) BOOL useScheme;
100
99
@property (nonatomic , strong ) IONAssetHandler * handler;
101
100
102
101
@property (nonatomic , readwrite ) NSString *CDV_LOCAL_SERVER;
@@ -756,12 +755,8 @@ -(void)getServerBasePath:(CDVInvokedUrlCommand*)command
756
755
-(void )setServerBasePath : (CDVInvokedUrlCommand*)command
757
756
{
758
757
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];
765
760
766
761
NSURLRequest * request = [NSURLRequest requestWithURL: [NSURL URLWithString: self .CDV_LOCAL_SERVER]];
767
762
[(WKWebView *)_engineWebView loadRequest: request];
You can’t perform that action at this time.
0 commit comments