onlyoffice: mark api as optional

This commit is contained in:
undefined committed 2021-07-29 14:36:53 +08:00
1 parent 68f5977e36
commit 53e33edef7
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ import * as system from 'hydrooj/src/model/system';
declare module 'hydrooj/src/service/server' { declare module 'hydrooj/src/service/server' {
interface UiContextBase { interface UiContextBase {
onlyofficeApi: string; onlyofficeApi?: string;
} }
} }
UiContextBase.onlyofficeApi = system.get('onlyoffice.api'); UiContextBase.onlyofficeApi = system.get('onlyoffice.api');