mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
fix detect-browser load
This commit is contained in:
1 parent
539b47d55b
commit
4f0d8be661
3 files changed
+3
-3
No files matched your search
@@ -158,7 +158,7 @@ class RecordDetailConnectionHandler extends contest.ContestHandlerMixin(Connecti
|
||||
}
|
||||
this.rid = rid.toString();
|
||||
bus.subscribe(['record_change'], this, 'onRecordChange');
|
||||
this.onRecordChange({ value: rdoc });
|
||||
this.onRecordChange({ value: { rdoc } });
|
||||
}
|
||||
|
||||
async onRecordChange(data) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import browser from 'detect-browser';
|
||||
import * as browser from 'detect-browser';
|
||||
|
||||
export function parse(str: string) {
|
||||
return browser.parseUserAgent(str);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.9.5",
|
||||
"version": "2.9.6",
|
||||
"main": "dist/loader.js",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
Reference in new issue
Block a user