@taole/dev-helper 0.1.4 → 0.1.6
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/Tdiv/index.js +6 -8
- package/dist/open-diandian.umd.js +1 -1
- package/dist/tdiv.umd.js +6 -8
- package/open-diandian/index.js +1 -1
- package/package.json +1 -1
package/Tdiv/index.js
CHANGED
|
@@ -273,16 +273,14 @@ class Tdiv extends HTMLElement {
|
|
|
273
273
|
|
|
274
274
|
|
|
275
275
|
|
|
276
|
-
let isRegister = false;
|
|
277
276
|
function registerTdiv() {
|
|
278
|
-
if (
|
|
279
|
-
|
|
280
|
-
// append style for t-div
|
|
281
|
-
const style = document.createElement('style');
|
|
282
|
-
style.textContent = styleText;
|
|
283
|
-
document.head.appendChild(style);
|
|
284
|
-
isRegister = true;
|
|
277
|
+
if (customElements.get('t-div')) {
|
|
278
|
+
return;
|
|
285
279
|
}
|
|
280
|
+
customElements.define('t-div', Tdiv);
|
|
281
|
+
const style = document.createElement('style');
|
|
282
|
+
style.textContent = styleText;
|
|
283
|
+
document.head.appendChild(style);
|
|
286
284
|
}
|
|
287
285
|
|
|
288
286
|
registerTdiv();
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
link_ios: "", // 空缺,后期补充
|
|
26
26
|
link_android: "diandainwolf://diandain:8888/splash",
|
|
27
27
|
fallback_link_ios: 'https://apps.apple.com/mo/app/%E7%82%B9%E7%82%B9%E7%8B%BC%E4%BA%BA%E6%9D%80-%E8%AF%AD%E9%9F%B3%E7%A4%BE%E4%BA%A4%E6%8E%A8%E7%90%86%E6%B8%B8%E6%88%8F/id1557616226',
|
|
28
|
-
fallback_link_android: '',
|
|
28
|
+
fallback_link_android: 'https://sj.qq.com/appdetail/com.tuwan.game.werewolf',
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
function resolveTwKit() {
|
package/dist/tdiv.umd.js
CHANGED
|
@@ -357,16 +357,14 @@
|
|
|
357
357
|
|
|
358
358
|
|
|
359
359
|
|
|
360
|
-
let isRegister = false;
|
|
361
360
|
function registerTdiv() {
|
|
362
|
-
if (
|
|
363
|
-
|
|
364
|
-
// append style for t-div
|
|
365
|
-
const style = document.createElement('style');
|
|
366
|
-
style.textContent = styleText;
|
|
367
|
-
document.head.appendChild(style);
|
|
368
|
-
isRegister = true;
|
|
361
|
+
if (customElements.get('t-div')) {
|
|
362
|
+
return;
|
|
369
363
|
}
|
|
364
|
+
customElements.define('t-div', Tdiv);
|
|
365
|
+
const style = document.createElement('style');
|
|
366
|
+
style.textContent = styleText;
|
|
367
|
+
document.head.appendChild(style);
|
|
370
368
|
}
|
|
371
369
|
|
|
372
370
|
registerTdiv();
|
package/open-diandian/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const appInfoMap = {
|
|
|
20
20
|
link_ios: "", // 空缺,后期补充
|
|
21
21
|
link_android: "diandainwolf://diandain:8888/splash",
|
|
22
22
|
fallback_link_ios: 'https://apps.apple.com/mo/app/%E7%82%B9%E7%82%B9%E7%8B%BC%E4%BA%BA%E6%9D%80-%E8%AF%AD%E9%9F%B3%E7%A4%BE%E4%BA%A4%E6%8E%A8%E7%90%86%E6%B8%B8%E6%88%8F/id1557616226',
|
|
23
|
-
fallback_link_android: '',
|
|
23
|
+
fallback_link_android: 'https://sj.qq.com/appdetail/com.tuwan.game.werewolf',
|
|
24
24
|
},
|
|
25
25
|
}
|
|
26
26
|
function resolveTwKit() {
|