We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f9f33a commit 6d1e071Copy full SHA for 6d1e071
1 file changed
HLPWebView/HLPWebView.m
@@ -76,6 +76,7 @@ - (instancetype)initWithFrame:(CGRect)frame configuration:(nonnull WKWebViewConf
76
{
77
self = [super initWithFrame:frame configuration:configuration];
78
if (self) {
79
+ _userMode = @"user_general";
80
NSBundle *bundle = [NSBundle bundleForClass:[HLPWebViewCore class]];
81
NSString *path = [bundle pathForResource:@"hlp_bridge" ofType:@"js"];
82
NSString *script = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
@@ -103,8 +104,6 @@ - (void)setDelegate:(id<HLPWebViewDelegate>)delegate
103
104
- (void)setConfig:(NSDictionary *)config
105
106
[super setConfig:config];
-
107
- _userMode = @"user_general";
108
}
109
110
- (NSURL*)buildTargetURL
0 commit comments