MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / isFirefox

Method isFirefox

src/openlayers/mapping/WebMap.js:5396–5399  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.isFirefox * @description 判断当前浏览器是否为 firefox * @returns {boolean}

()

Source from the content-addressed store, hash-verified

5394 * @returns {boolean}
5395 */
5396 isFirefox() {
5397 let userAgent = navigator.userAgent;
5398 return userAgent.indexOf('Firefox') > -1;
5399 }
5400
5401 /**
5402 * @private

Callers 1

isSupportWebpMethod · 0.95

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected