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

Version Path
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js
lanes-0.8.0 node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js
select_all-rails-0.3.1 node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js