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

Download resource buttons are visible in the Windows app #68

Open
dylanmccall opened this issue Nov 4, 2020 · 2 comments
Open

Download resource buttons are visible in the Windows app #68

dylanmccall opened this issue Nov 4, 2020 · 2 comments

Comments

@dylanmccall
Copy link
Contributor

Using the Kolibri Windows app built from this repository, the "Download resource" button is visible when viewing content such as videos. This link doesn't work because we need to implement some more WebKit things, but it also shouldn't be visible in this context.

Download resource

Kolibri hides this button based on a user agent check, which works as expected with the Mac app because of how WebKit sets its user agent. Perhaps the user agent in the Windows app is set to something unexpected:

@kollivier
Copy link
Contributor

@dylanmccall Actually, it's just that I forgot to add logic specific to Windows for that check. I'm actually thinking that since we now have the app plugin in Kolibri and the appContext stuff, we can rely on that rather than the user agent checks.

The only thing about that is that I realized that the GNOME app probably has isEmbeddedWebView set to false, and so download buttons are visible there. (Which makes sense as you have download support.) Would the best short-term fix be to do a check like (isWin || isMac || isAndroid) && isAppContext?

@dylanmccall
Copy link
Contributor Author

Yeah, I think that would be perfect :)

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