You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
930 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var getGlobalScope_1 = require("../helper/getGlobalScope");
var _encodingIndexes;
function checkForEncodingIndexes() {
if (typeof TextEncodingIndexes !== 'undefined')
return TextEncodingIndexes.encodingIndexes;
var glo = getGlobalScope_1.getGlobalScope();
if (!glo)
return null;
if ('TextEncodingIndexes' in glo)
return global['TextEncodingIndexes']['encodingIndexes'];
if ('encoding-indexes' in glo)
return global['encodingIndexes'];
return null;
}
function getEncodingIndexes() {
if (_encodingIndexes) {
return _encodingIndexes;
}
var indexes = checkForEncodingIndexes();
if (!indexes) {
return null;
}
_encodingIndexes = indexes;
return indexes;
}
exports.getEncodingIndexes = getEncodingIndexes;
//# sourceMappingURL=encoding-indexes-provider.js.map