UNPKG

@opra/core

Version:
20 lines (19 loc) 576 B
import './augmentation/18n.augmentation.js'; import { I18n } from '@opra/common'; import { AsyncEventEmitter, } from 'node-events-async'; import { AssetCache } from './asset-cache.js'; import { kAssetCache } from './constants.js'; /** * @class PlatformAdapter */ export class PlatformAdapter extends AsyncEventEmitter { constructor(options) { super(); this[kAssetCache] = new AssetCache(); this.i18n = options?.i18n || I18n.defaultInstance; this.logger = options?.logger; } get document() { return this._document; } }