fix chromium

This commit is contained in:
felinae98
2021-02-08 11:39:57 +08:00
parent 2178f9667f
commit 8d02c8f22a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -21,9 +21,9 @@ class Render(metaclass=Singleton):
async def init(self):
if plugin_config.hk_reporter_use_local:
browser = await launch(executablePath='/usr/bin/chromium')
browser = await launch(executablePath='/usr/bin/chromium', args=['--no-sandbox'])
else:
browser = await launch()
browser = await launch(args=['--no-sandbox'])
self.page = await browser.newPage()
async def text_to_pic(self, text: str) -> str: