pinokiod 1.3.64 → 1.3.66

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.64",
3
+ "version": "1.3.66",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1894,6 +1894,13 @@ class Server {
1894
1894
  // initialize kernel
1895
1895
  await this.kernel.init({ port: this.port})
1896
1896
 
1897
+
1898
+ let ex = await this.kernel.exists(this.kernel.homedir, "ENVIRONMENT")
1899
+ if (!ex) {
1900
+ let str = Environment.ENV(this.kernel.homedir)
1901
+ await fs.promises.writeFile(path.resolve(this.homedir, "ENVIRONMENT"), str)
1902
+ }
1903
+
1897
1904
  let env = await Environment.get(this.kernel.homedir)
1898
1905
  if (env && env.PINOKIO_PORT) {
1899
1906
  this.port = env.PINOKIO_PORT
@@ -617,7 +617,11 @@ body.dark .loader-container {
617
617
  <button class='btn2' id='forward'><i class="fa-solid fa-chevron-right"></i></button>
618
618
  <% } %>
619
619
  <button class='btn2' id='clone-tab'><i class='fa-regular fa-copy'></i> Clone</button>
620
- <a class='btn2' id='open-browser' target="_blank" href="" features="browser"><i class="fa-solid fa-square-arrow-up-right"></i> Popout</a>
620
+ <% if (agent === "electron") { %>
621
+ <a class='btn2' id='open-browser' target="_blank" href="" features="browser"><i class="fa-solid fa-square-arrow-up-right"></i> Popout</a>
622
+ <% } else { %>
623
+ <a class='btn2' id='open-browser' target="_blank" href=""><i class="fa-solid fa-square-arrow-up-right"></i> Popout</a>
624
+ <% } %>
621
625
  <button class='btn2' id='reload'><i class="fa-solid fa-rotate-right"></i> Refresh</button>
622
626
  <div id='new-tab' class='btn2'><i class="fa-solid fa-plus"></i> Tab</div>
623
627
  <!--
@@ -220,7 +220,11 @@ body.dark .browser-options-row {
220
220
  <div class='browser-options'>
221
221
  <% if (agent === "electron") { %>
222
222
  <div class='browser-options-row'>
223
- <a href="/" target="_blank" class='btn' features="browser"><div><i class="fa-solid fa-square-up-right"></i> Open</div></a>
223
+ <% if (agent === "electron") { %>
224
+ <a href="/" target="_blank" class='btn' features="browser"><div><i class="fa-solid fa-square-up-right"></i> Open</div></a>
225
+ <% } else { %>
226
+ <a href="/" target="_blank" class='btn'><div><i class="fa-solid fa-square-up-right"></i> Open</div></a>
227
+ <% } %>
224
228
  <div class='flexible'>
225
229
  <h3><i class="fa-solid fa-bolt"></i> Instant Launch</h3>
226
230
  <div>(Experimental) Directly open pinokio apps from your favorite browser address bar at localhost. If an app you're trying to use is already running, it will instantly load. If it's not, the app will first launch and then load the website.</div>