|
@@ -14,8 +14,7 @@ if (currentScript) {
|
|
const attr = currentScript.getAttribute.bind(currentScript);
|
|
const attr = currentScript.getAttribute.bind(currentScript);
|
|
const appId = attr('data-app-id');
|
|
const appId = attr('data-app-id');
|
|
const endPoint = attr('data-url');
|
|
const endPoint = attr('data-url');
|
|
- const trackEndPoint = attr('data-track-url');
|
|
|
|
- if (!appId || !endPoint || !trackEndPoint) {
|
|
|
|
|
|
+ if (!appId || !endPoint) {
|
|
// throw new Error('medici script are initial with error, please take a look!');
|
|
// throw new Error('medici script are initial with error, please take a look!');
|
|
(window as any).Medici = init;
|
|
(window as any).Medici = init;
|
|
} else {
|
|
} else {
|
|
@@ -23,11 +22,6 @@ if (currentScript) {
|
|
platform: 'web',
|
|
platform: 'web',
|
|
appId: appId,
|
|
appId: appId,
|
|
endPoint: endPoint, //服务器
|
|
endPoint: endPoint, //服务器
|
|
- trackEndPoint: trackEndPoint,
|
|
|
|
- // config: {
|
|
|
|
- // user: 'testUser',
|
|
|
|
- // version: '1',
|
|
|
|
- // },
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|