star_mod_renderer
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "star_mod_renderer", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "star mod project render auxiliary ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ import { RenderBase } from './render.base'; | ||
constructor(container) { | ||
constructor(container, platform='pc') { | ||
super({ mode: 'render', dom: container }); | ||
@@ -21,5 +21,5 @@ this.setAnimationLoop(() => { | ||
try { | ||
if (process && process.env && process.env.VUE_APP_NAME) { | ||
if (platform === 'pc') { | ||
processEnv = process.env.VUE_APP_NAME; | ||
} else if (import.meta && import.meta.env && import.meta.env.VITE_APP_NAME) { | ||
} else if (platform === 'mobile') { | ||
processEnv = import.meta.env.VITE_APP_NAME | ||
@@ -26,0 +26,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2
49004