pinokiod 3.79.0 → 3.81.0

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": "3.79.0",
3
+ "version": "3.81.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -3072,6 +3072,7 @@ class Server {
3072
3072
  }
3073
3073
  console.log(JSON.stringify(bundles, null, 2))
3074
3074
  res.render("tools", {
3075
+ current_host: this.kernel.peer.host,
3075
3076
  pending,
3076
3077
  installs,
3077
3078
  bundles,
@@ -3249,9 +3250,9 @@ class Server {
3249
3250
  // if (!this.kernel.proto.config) {
3250
3251
  // await this.kernel.proto.init()
3251
3252
  // }
3252
- if (!this.kernel.plugin.config) {
3253
- await this.kernel.plugin.init()
3254
- }
3253
+ // if (!this.kernel.plugin.config) {
3254
+ // await this.kernel.plugin.init()
3255
+ // }
3255
3256
 
3256
3257
  if (req.query.mode !== "settings" && !home) {
3257
3258
  res.redirect("/?mode=settings")
@@ -69,7 +69,7 @@ function initUrlDropdown(config = {}) {
69
69
  let u = new URL(val)
70
70
  if (String(u.port) === "42000") {
71
71
  // pinokio app => open the url itself
72
- window.open(val, "_blank")
72
+ window.open(val, "_blank", 'self')
73
73
  } else {
74
74
  // other servers => open in pinokio redirect frame
75
75
  let redirect_uri = "/container?url=" + val
@@ -347,7 +347,7 @@ function initUrlDropdown(config = {}) {
347
347
  button.addEventListener('click', function(e) {
348
348
  e.stopPropagation();
349
349
  const networkUrl = this.getAttribute('data-network-url');
350
- window.open(networkUrl, '_blank');
350
+ window.open(networkUrl, '_blank', 'self');
351
351
  });
352
352
  });
353
353
  }
@@ -570,7 +570,7 @@ function initUrlDropdown(config = {}) {
570
570
  button.addEventListener('click', function(e) {
571
571
  e.stopPropagation();
572
572
  const networkUrl = this.getAttribute('data-network-url');
573
- window.open(networkUrl, '_blank');
573
+ window.open(networkUrl, '_blank', 'self');
574
574
  });
575
575
  });
576
576
  }