@cardsjd/device 0.1.16 → 0.1.17
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/README.md +0 -0
- package/lib/device.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
Binary file
|
package/lib/device.js
CHANGED
|
@@ -139,6 +139,10 @@ export default class Device {
|
|
|
139
139
|
return 'poki';
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
if (typeof globalThis.gdsdk !== 'undefined') {
|
|
143
|
+
return 'gameDistribution';
|
|
144
|
+
}
|
|
145
|
+
|
|
142
146
|
//native Cordova
|
|
143
147
|
if (typeof globalThis.cordova !== 'undefined') {
|
|
144
148
|
const isKindle = /Kindle|Silk|Amazon|KFDOWI|KFAPWA|KFSAW|KFGIWI|KFGIWI|KFAPW|KFARWI|KFTBWI|KFASWI|KFFOWI|KFJW|KFMEWI|KFOT|KFSAW|KFSOWI|KFTBW|KFTHW|KFTT|WFFOWI|KFJWA|KFJWI|KFTHWA|KFTHWI|KFAPWI|KFKAWI/i.test(navigator.userAgent);
|