@mixd-id/web-scaffold 0.1.240411037 → 0.1.240411039

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.240411037",
4
+ "version": "0.1.240411039",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -60,7 +60,6 @@ const pickColumns = function(columns, keys){
60
60
  const setupConfig = (config) => {
61
61
 
62
62
  if(config.domains && !Array.isArray(config.presets)){
63
-
64
63
  let defaultConfig
65
64
  for(let key in config.domains){
66
65
  if(location.host.indexOf(key) >= 0){
@@ -68,9 +67,10 @@ const setupConfig = (config) => {
68
67
  break
69
68
  }
70
69
  }
71
- Object.assign(config, JSON.parse(JSON.stringify(defaultConfig)))
72
- console.log(10001, 'location', config)
70
+ if(!defaultConfig)
71
+ defaultConfig = config.domains['default'] ?? {}
73
72
 
73
+ Object.assign(config, JSON.parse(JSON.stringify(defaultConfig)))
74
74
  }
75
75
 
76
76
  if(Array.isArray(config.presets)){