PageSourceSearch

https://servicedesk.adult-empire.com/static/util/navigator.js

js adult-empire.com collected 2026-09-25 14:28:55 UTC 2,725 bytes, 89 lines download raw bytes

1define('jira/util/navigator', ['internal/util/navigator', 'jira/util/data/meta', 'jquery'], function (internalNavigator, Meta, jQuery) {
2  'use strict';
3
4  /**
5   * Can retrieve names and version numbers for the user's
6   * browser and platform / operating system.
7   *
8   * This module should be used sparingly; you should
9   * always prefer feature-detection over checking
10   * properties defined here.
11   *
12   * @exports jira/util/navigator
13   * @extends module:internal/util/navigator
14   * @see The {@link https://stash.atlassian.com/projects/FE/repos/atlassian-navigator}
15   *      repo for implementation details.
16   */
17  var Navigator = jQuery.extend({}, internalNavigator);
18
19  /**
20   * @function module:jira/util/navigator.isWin
21   * @returns {boolean} true if the current operating system is Windows-based.
22   */
23
24  /**
25   * @function module:jira/util/navigator.isMac
26   * @returns {boolean} true if the current operating system is Apple OS X-based.
27   */
28
29  /**
30   * @function module:jira/util/navigator.isLinux
31   * @returns {boolean} true if the current operating system is Linux-based.
32   */
33
34  /**
35   * @function module:jira/util/navigator.majorVersion
36   * @returns {int} the major version of the current browser.
37   */
38
39  /**
40   * @function module:jira/util/navigator.isIE
41   * @returns {boolean} true if the current browser is Internet Explorer.
42   */
43
44  /**
45   * @function module:jira/util/navigator.isEdge
46   * @returns {boolean} true if the current browser is Microsoft Edge.
47   */
48
49  /**
50   * @function module:jira/util/navigator.isWebkit
51   * @returns {boolean} true if the current browser engine is webkit-based.
52   */
53
54  /**
55   * @function module:jira/util/navigator.isSafari
56   * @returns {boolean} true if the current browser is Safari.
57   */
58
59  /**
60   * @function module:jira/util/navigator.isChrome
61   * @returns {boolean} true if the current browser is Google Chrome.
62   */
63
64  /**
65   * @function module:jira/util/navigator.isFirefox
66   * @returns {boolean} true if the current browser is Mozilla Firefox.
67   */
68
69  /**
70   * @returns {boolean} true if the current browser is Opera
71   * @note Was missing from internal/util/navigator as at 2014-05-06
72   */
73  Navigator.isOpera = function () {
74    return jQuery.browser.opera === true;
75  };
76
77  /**
78   * The modifier key used to trigger access-keys defined in a page.
79   *
80   * @return {String} A textual description of the modifier key used by this browser.
81   * e.g. "Alt" or "Alt+Shift"
82   *
83   * @deprecated You shouldn't need this. But if you did, you'd call {@code AJS.Meta.get("keyboard-accesskey-modifier")} instead.
84   */
85  Navigator.modifierKey = function () {
86    return Meta.get("keyboard-accesskey-modifier");
87  };
88  return Navigator;
89});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.