Initial
This commit is contained in:
5
resources/app/node_modules/@pixi/settings/lib/utils/isMobile.js
generated
vendored
Normal file
5
resources/app/node_modules/@pixi/settings/lib/utils/isMobile.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
var isMobileJs = require("ismobilejs");
|
||||
const isMobileCall = isMobileJs.default ?? isMobileJs, isMobile = isMobileCall(globalThis.navigator);
|
||||
exports.isMobile = isMobile;
|
||||
//# sourceMappingURL=isMobile.js.map
|
||||
1
resources/app/node_modules/@pixi/settings/lib/utils/isMobile.js.map
generated
vendored
Normal file
1
resources/app/node_modules/@pixi/settings/lib/utils/isMobile.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"isMobile.js","sources":["../../src/utils/isMobile.ts"],"sourcesContent":["import isMobileJs from 'ismobilejs';\n\n// ismobilejs have different import behavior for CJS and ESM, so here is the hack\ntype isMobileJsType = typeof isMobileJs & { default?: typeof isMobileJs };\nconst isMobileCall = (isMobileJs as isMobileJsType).default ?? isMobileJs;\n\nexport type isMobileResult = {\n apple: {\n phone: boolean;\n ipod: boolean;\n tablet: boolean;\n universal: boolean;\n device: boolean;\n };\n amazon: {\n phone: boolean;\n tablet: boolean;\n device: boolean;\n };\n android: {\n phone: boolean;\n tablet: boolean;\n device: boolean;\n };\n windows: {\n phone: boolean;\n tablet: boolean;\n device: boolean;\n };\n other: {\n blackberry: boolean;\n blackberry10: boolean;\n opera: boolean;\n firefox: boolean;\n chrome: boolean;\n device: boolean;\n };\n phone: boolean;\n tablet: boolean;\n any: boolean;\n};\n\nexport const isMobile: isMobileResult = isMobileCall(globalThis.navigator);\n"],"names":[],"mappings":";;AAIA,MAAM,eAAgB,WAA8B,WAAW,YAsClD,WAA2B,aAAa,WAAW,SAAS;;"}
|
||||
6
resources/app/node_modules/@pixi/settings/lib/utils/isMobile.mjs
generated
vendored
Normal file
6
resources/app/node_modules/@pixi/settings/lib/utils/isMobile.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import isMobileJs from "ismobilejs";
|
||||
const isMobileCall = isMobileJs.default ?? isMobileJs, isMobile = isMobileCall(globalThis.navigator);
|
||||
export {
|
||||
isMobile
|
||||
};
|
||||
//# sourceMappingURL=isMobile.mjs.map
|
||||
1
resources/app/node_modules/@pixi/settings/lib/utils/isMobile.mjs.map
generated
vendored
Normal file
1
resources/app/node_modules/@pixi/settings/lib/utils/isMobile.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"isMobile.mjs","sources":["../../src/utils/isMobile.ts"],"sourcesContent":["import isMobileJs from 'ismobilejs';\n\n// ismobilejs have different import behavior for CJS and ESM, so here is the hack\ntype isMobileJsType = typeof isMobileJs & { default?: typeof isMobileJs };\nconst isMobileCall = (isMobileJs as isMobileJsType).default ?? isMobileJs;\n\nexport type isMobileResult = {\n apple: {\n phone: boolean;\n ipod: boolean;\n tablet: boolean;\n universal: boolean;\n device: boolean;\n };\n amazon: {\n phone: boolean;\n tablet: boolean;\n device: boolean;\n };\n android: {\n phone: boolean;\n tablet: boolean;\n device: boolean;\n };\n windows: {\n phone: boolean;\n tablet: boolean;\n device: boolean;\n };\n other: {\n blackberry: boolean;\n blackberry10: boolean;\n opera: boolean;\n firefox: boolean;\n chrome: boolean;\n device: boolean;\n };\n phone: boolean;\n tablet: boolean;\n any: boolean;\n};\n\nexport const isMobile: isMobileResult = isMobileCall(globalThis.navigator);\n"],"names":[],"mappings":";AAIA,MAAM,eAAgB,WAA8B,WAAW,YAsClD,WAA2B,aAAa,WAAW,SAAS;"}
|
||||
Reference in New Issue
Block a user