fix detect-browser load

This commit is contained in:
undefined committed 2020-07-21 07:51:15 +08:00
1 parent 539b47d55b
commit 4f0d8be661
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
import browser from 'detect-browser';
import * as browser from 'detect-browser';
export function parse(str: string) {
return browser.parseUserAgent(str);