Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images cannot be loaded #210

Closed
ara-ta3 opened this issue Sep 24, 2020 · 2 comments · Fixed by #211
Closed

Images cannot be loaded #210

ara-ta3 opened this issue Sep 24, 2020 · 2 comments · Fixed by #211

Comments

@ara-ta3
Copy link

ara-ta3 commented Sep 24, 2020

I use squidtracks version 1.3.3.
It cannot load most of images.

スクリーンショット 2020-09-24 22 45 40

I ran it locally and devtool gave me this error.

Failed to load resource: net::ERR_CERT_INVALID

スクリーンショット 2020-09-24 22 34 57

I don't think this is a good way to do it, since it ignores the errors, but I added this code and it worked

app.commandLine.appendSwitch('ignore-certificate-errors', 'true');

git diff

diff --git a/public/main/index.js b/public/main/index.js
index 0d4dd8c..26806f2 100644
--- a/public/main/index.js
+++ b/public/main/index.js
@@ -32,6 +32,7 @@ if (!isDev) {
   require('./autoupdate');
 } else {
   log.info('app running in development');
+  app.commandLine.appendSwitch('ignore-certificate-errors', 'true');
 }

 const startUrl = isDev

I'm not familiar with Electron, so I'll look into it more and find a better way, but I'll report back anyway.

@littlepetfrog
Copy link

I'm having the same issue:
image

@ara-ta3
Copy link
Author

ara-ta3 commented Sep 28, 2020

I raised it to version 1.3.4 and it was fixed. Thanks!

https://github.com/hymm/squid-tracks/releases/tag/v1.3.4

@ara-ta3 ara-ta3 closed this as completed Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants