Fix 'document' is not defined [no-undef] lint in web_environment_ribbon

pull/2974/head
Duy (Đỗ Anh) 2024-10-28 17:11:51 +07:00
parent dea89bfc58
commit 1ff5102808
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@ import {Component, xml} from "@odoo/owl";
import {useBus, useService} from "@web/core/utils/hooks"; import {useBus, useService} from "@web/core/utils/hooks";
import {registry} from "@web/core/registry"; import {registry} from "@web/core/registry";
const {document} = globalThis;
export class WebEnvironmentRibbon extends Component { export class WebEnvironmentRibbon extends Component {
setup() { setup() {
this.orm = useService("orm"); this.orm = useService("orm");