pinokiod 7.1.65 → 7.1.67

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": "7.1.65",
3
+ "version": "7.1.67",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -49,11 +49,6 @@
49
49
  color-scheme: light;
50
50
  }
51
51
 
52
- body[data-page="connect"][data-agent="electron"] {
53
- padding-top: 26px;
54
- box-sizing: border-box;
55
- }
56
-
57
52
  @media (prefers-color-scheme: dark) {
58
53
  body[data-page="connect"] {
59
54
  --connect-body-bg: #010617;
@@ -626,7 +621,8 @@
626
621
  try {
627
622
  window.open(authUrl, '_blank', 'browser');
628
623
  } catch (openError) {
629
- stopSecureConnectPolling(`Could not open the browser automatically. Please open ${authUrl} manually.`, 'error');
624
+ hideLoader();
625
+ setStatus(`Could not open the browser. Please open ${authUrl} manually.`, 'error');
630
626
  return;
631
627
  }
632
628
  return;
@@ -830,15 +826,12 @@
830
826
 
831
827
  function startHttpConnect() {
832
828
  stopConnectPolling()
833
- showLoader('Connecting... Complete the login in the secure window.', {
829
+ showLoader(`Connecting... Complete the login in the ${CONNECT_AGENT === 'electron' ? 'browser' : 'secure window'}.`, {
834
830
  cancellable: true,
835
831
  onCancel: () => stopConnectPolling('Connection cancelled.', 'warning')
836
832
  })
837
833
  setStatus('Waiting for connection...', 'warning')
838
- const secureWindow = window.open(SECURE_CONNECT_URL, '_blank')
839
- if (!secureWindow) {
840
- setStatus('Could not open the secure window. Please allow pop-ups or open https://pinokio.localhost/connect/<%=name%> manually.', 'error')
841
- }
834
+ window.open(SECURE_CONNECT_URL, '_blank', 'browser')
842
835
  pollConnectStatus()
843
836
  connectPollTimer = setInterval(pollConnectStatus, CONNECT_POLL_INTERVAL)
844
837
  connectTimeoutHandle = setTimeout(() => {