Skip to content

Commit

Permalink
fix: 1.解决同步冲突问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JuckZ committed Sep 14, 2023
1 parent f21570d commit bd3ce7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ export default class AwesomeBrainManagerPlugin extends Plugin {
}

generateCssString() {
const sheet = [
`/* This snippet was auto-generated by the awesome-brain-manager plugin on ${new Date().toLocaleString()} */`,
const sheet: string[] = [
// TODO 临时解决,这个代码导致同步插件同步隐藏文件时频繁冲突,后面可以优化成判断是否已经生成过css
// `/* This snippet was auto-generated by the awesome-brain-manager plugin on ${new Date().toLocaleString()} */`,
];

for (const rule of Array.from(this.style.sheet!.cssRules)) {
Expand Down

0 comments on commit bd3ce7c

Please sign in to comment.