Skip to content

Commit 6d1e071

Browse files
committed
bugfix
1 parent 3f9f33a commit 6d1e071

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

HLPWebView/HLPWebView.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ - (instancetype)initWithFrame:(CGRect)frame configuration:(nonnull WKWebViewConf
7676
{
7777
self = [super initWithFrame:frame configuration:configuration];
7878
if (self) {
79+
_userMode = @"user_general";
7980
NSBundle *bundle = [NSBundle bundleForClass:[HLPWebViewCore class]];
8081
NSString *path = [bundle pathForResource:@"hlp_bridge" ofType:@"js"];
8182
NSString *script = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
@@ -103,8 +104,6 @@ - (void)setDelegate:(id<HLPWebViewDelegate>)delegate
103104
- (void)setConfig:(NSDictionary *)config
104105
{
105106
[super setConfig:config];
106-
107-
_userMode = @"user_general";
108107
}
109108

110109
- (NSURL*)buildTargetURL

0 commit comments

Comments
 (0)