UNPKG

@opra/core

Version:
23 lines (22 loc) 616 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 { [kAssetCache]; i18n; logger; constructor(options) { super(); this[kAssetCache] = new AssetCache(); this.i18n = options?.i18n || I18n.defaultInstance; this.logger = options?.logger; } get document() { return this._document; } }