pinokiod 1.3.48 → 1.3.50

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,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.48",
3
+ "version": "1.3.50",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -230,6 +230,14 @@ class Server {
230
230
  }
231
231
  console.log("M", mem)
232
232
 
233
+ let current = this.kernel.path("api", name, "ENVIRONMENT")
234
+ // if environment.json doesn't exist,
235
+ let exists = await this.exists(current)
236
+ if (!exists) {
237
+ let content = await Environment.APP_ENV()
238
+ await fs.promises.writeFile(current, content)
239
+ }
240
+
233
241
 
234
242
  //res.render("browser", {
235
243
  res.render("browser-experimental", {
@@ -222,7 +222,7 @@ body.dark .browser-options-row {
222
222
  <div class='container'>
223
223
  <% if (ishome) { %>
224
224
  <div class='browser-options'>
225
- <% if (agent !== "electron") { %>
225
+ <% if (agent === "electron") { %>
226
226
  <div class='browser-options-row'>
227
227
  <a href="/" target="_blank" class='btn' features="browser"><div><i class="fa-solid fa-square-up-right"></i> Open</div></a>
228
228
  <div class='flexible'>