homegames-common 1.0.1 → 1.0.2
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/index.js +5 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -724,6 +724,11 @@ const log = {
|
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
const getAppDataPath = () => {
|
|
727
|
+
if (!process) {
|
|
728
|
+
// this shouldnt be called if running in browser
|
|
729
|
+
return '';
|
|
730
|
+
}
|
|
731
|
+
|
|
727
732
|
switch (process.platform) {
|
|
728
733
|
case "darwin": {
|
|
729
734
|
return process.env.HOME ? path.join(process.env.HOME, "Library", "Application Support", "homegames") : __dirname;
|