Sha256: e7be37777080f168c2f4868289f889b3a8633e788c521ed72af731337b5b0abc
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
"use strict"; const idlUtils = require("../generated/utils"); const NavigatorIDImpl = require("./NavigatorID-impl").implementation; const NavigatorLanguageImpl = require("./NavigatorLanguage-impl").implementation; const NavigatorOnLineImpl = require("./NavigatorOnLine-impl").implementation; const NavigatorCookiesImpl = require("./NavigatorCookies-impl").implementation; const NavigatorPluginsImpl = require("./NavigatorPlugins-impl").implementation; const NavigatorConcurrentHardwareImpl = require("./NavigatorConcurrentHardware-impl").implementation; class NavigatorImpl { constructor(args, privateData) { this.userAgent = privateData.userAgent; this.languages = Object.freeze(["en-US", "en"]); } } idlUtils.mixin(NavigatorImpl.prototype, NavigatorIDImpl.prototype); idlUtils.mixin(NavigatorImpl.prototype, NavigatorLanguageImpl.prototype); idlUtils.mixin(NavigatorImpl.prototype, NavigatorOnLineImpl.prototype); idlUtils.mixin(NavigatorImpl.prototype, NavigatorCookiesImpl.prototype); idlUtils.mixin(NavigatorImpl.prototype, NavigatorPluginsImpl.prototype); idlUtils.mixin(NavigatorImpl.prototype, NavigatorConcurrentHardwareImpl.prototype); exports.implementation = NavigatorImpl;
Version data entries
3 entries across 3 versions & 3 rubygems