fix: chrome应用加载多个插件不生效问题

pull/13212/head
halo 2024-05-11 11:32:35 +08:00 committed by Bryan
parent 52c905832b
commit 77caa5536f
1 changed files with 1 additions and 2 deletions

View File

@ -247,8 +247,7 @@ class AppletApplication(BaseApplication):
if protocol_setting and protocol_setting.safe_mode: if protocol_setting and protocol_setting.safe_mode:
# 加载 extensions # 加载 extensions
extension_paths = load_extensions() extension_paths = load_extensions()
for extension_path in extension_paths: self._chrome_options.add_argument('--load-extension={}'.format(','.join(extension_paths)))
self._chrome_options.add_argument('--load-extension={}'.format(extension_path))
@wrapper_progress_bar @wrapper_progress_bar
def run(self): def run(self):