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

Method getFirefoxVersion

src/openlayers/mapping/WebMap.js:5418–5422  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.getFirefoxVersion * @description 获取火狐浏览器的版本号 * @returns {number}

()

Source from the content-addressed store, hash-verified

5416 * @returns {number}
5417 */
5418 getFirefoxVersion() {
5419 let userAgent = navigator.userAgent.toLowerCase(),
5420 version = userAgent.match(/firefox\/([\d.]+)/);
5421 return +version[1];
5422 }
5423
5424 /**
5425 * @private

Callers 1

isSupportWebpMethod · 0.95

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected