@syncfusion/ej2-base 31.2.5 → 31.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +8 -1
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +8 -1
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/util.js +2 -1
- package/src/validate-lic.js +6 -0
package/dist/es6/ej2-base.es5.js
CHANGED
|
@@ -43,7 +43,8 @@ function setImmediate(handler) {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
window.addEventListener('message', messageHandler, false);
|
|
46
|
-
window.
|
|
46
|
+
var origin = window.location.origin.indexOf('file://') === 0 ? '*' : window.location.origin;
|
|
47
|
+
window.postMessage(secret, origin);
|
|
47
48
|
return unbind = function () {
|
|
48
49
|
window.removeEventListener('message', messageHandler);
|
|
49
50
|
handler = messageHandler = secret = undefined;
|
|
@@ -7272,9 +7273,15 @@ function convertToChar(cArr) {
|
|
|
7272
7273
|
* @returns {void}
|
|
7273
7274
|
*/
|
|
7274
7275
|
function registerLicense(key) {
|
|
7276
|
+
if (typeof window !== 'undefined') {
|
|
7277
|
+
key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
|
|
7278
|
+
}
|
|
7275
7279
|
licenseValidator = new LicenseValidator(key);
|
|
7276
7280
|
}
|
|
7277
7281
|
var validateLicense = function (component, key) {
|
|
7282
|
+
if (typeof window !== 'undefined') {
|
|
7283
|
+
key = window.syncfusionLicenseKey ? window.syncfusionLicenseKey : key;
|
|
7284
|
+
}
|
|
7278
7285
|
if (key) {
|
|
7279
7286
|
registerLicense(key);
|
|
7280
7287
|
}
|