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

fix: support PWA on Netlify #79

Merged
merged 3 commits into from
Jul 4, 2023
Merged

fix: support PWA on Netlify #79

merged 3 commits into from
Jul 4, 2023

Conversation

CNSeniorious000
Copy link
Contributor

implement #71

Description

PWA now works on Netlify

Linked Issues

#71

Additional context

and update dependencies
@netlify
Copy link

netlify bot commented Jul 3, 2023

Deploy Preview for chatgpt-demo-v2 ready!

Name Link
🔨 Latest commit 2334cbc
🔍 Latest deploy log https://app.netlify.com/sites/chatgpt-demo-v2/deploys/64a3b2b67e5b1400084a9555
😎 Deploy Preview https://deploy-preview-79--chatgpt-demo-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -39,7 +33,6 @@ const { title } = Astro.props;
(function() {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('theme') || 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light'))
document.documentElement.classList.toggle('dark', true)
if (setting === 'dark' || (prefersDark && setting !== 'light')) document.documentElement.classList.toggle('dark', true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This formatting code may need to be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy that. Looks like IDE reformatted the code without my notice. Would be more careful in the future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy that. Looks like IDE reformatted the code without my notice. Would be more careful in the future.

Fine, Thanks a lot for your work ❤️

@yzh990918 yzh990918 merged commit 7904c91 into anse-app:main Jul 4, 2023
hisune added a commit to hisune/anse that referenced this pull request Jul 5, 2023
fix: support PWA on Netlify (anse-app#79)
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