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

Add unknown platform #2848

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add unknown platform #2848

wants to merge 2 commits into from

Conversation

duzda
Copy link

@duzda duzda commented Aug 29, 2022

This is a follow up PR to itchio/butler#242

This PR just adds a little icon, that the executable may not work on your system, if platform is not specified. This icon should only show up for executables, not for game assets, sound files etc.

image

aycyang and others added 2 commits August 5, 2022 22:44
The history field of Electron's webContents module is no longer present
beyond Electron 10, so we have to stop using it in order to upgrade.

webContents.history is ostensibly used to manage a subset of browsing
history. My observation is that the global history (which includes
itch:// URLs) is a superset of the webContents.history, so the theory is
that we could rely entirely on the global history and back-forward
navigation would work just as well.

This commit introduces a new bug: after entering a URL such as
`http://itch.io` into the address bar, the app will change the URL to
`https://itch.io/` (note the change in protocol and the added trailing
slash), and the history will end up with two entries when there should
be only one. This means that going back from `https://itch.io/` will
navigate to `http://itch.io` only to loop you back to
`https://itch.io/`, rendering the back button useless in this particular
scenario. I can't figure out how to fix this correctly, so to work
around this in the common case, I'm changing the URL of the Explore
sidebar entry so that at least the itch.io homepage won't have this
problem.

Closes itchio#2598
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 this pull request may close these issues.

2 participants