-
Notifications
You must be signed in to change notification settings - Fork 3
fix: override sdtools loadConfiguration to prevent null classList errors #14
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,10 @@ | |
| <title>Settings</title> | ||
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/barraider/streamdeck-easypi@latest/src/sdpi.css"> | ||
| <script src="https://cdn.jsdelivr.net/gh/barraider/streamdeck-easypi@latest/src/sdtools.common.js"></script> | ||
| <script> | ||
| // Vue.js 负责数据绑定,禁用 sdtools 的自动表单填充,避免找不到 DOM 元素时报错 | ||
| function loadConfiguration() {} | ||
| </script> | ||
|
Comment on lines
+12
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code comment is in Chinese, whereas the rest of the project (including the Go source code, manifest, and PR description) is in English. To maintain consistency and ensure the codebase is accessible to all contributors, it is recommended to use English for comments. Furthermore, the <script>
// Vue.js handles data binding; override loadConfiguration to prevent DOM errors from sdtools
function loadConfiguration(settings) {}
</script> |
||
| <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> | ||
| </head> | ||
| <body> | ||
|
|
||
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.
The new inline comment is in Chinese while the rest of this property inspector (labels/buttons) and repo metadata (e.g., resources/manifest.json) are in English. To keep the codebase consistent and maintainable for all contributors, please translate this comment to English (or make it bilingual).