-
Notifications
You must be signed in to change notification settings - Fork 2
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
Check this please~ #265
base: main
Are you sure you want to change the base?
Check this please~ #265
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Almost there.
I would:
- Move the parseDurationMs into a separate file
- Make sure you have tests for parseDurationMs
And just see the other small comments, it’s little things.
src/runtime/runtime.ts
Outdated
@@ -144,6 +178,12 @@ class Duomo implements Runtime { | |||
return this.#darkMode | |||
} | |||
setDarkMode(mode: boolean) { | |||
const durValue = getComputedStyle(document.documentElement).getPropertyValue('--default-theme-transition-duration'); | |||
|
|||
if(this.#shouldNoOpDarkMode){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you’re using Prettier if you’re not already. I would expect this to be if (this.#shouldNoOpDarkMode) {
(you have no spaces right now).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I installed the Prettier, but It's still same. Probably prettier setting problem on my vscode..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you for your hard work!
No description provided.