-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not add gecko to manifest.json
- Loading branch information
Showing
3 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Patch web-ext's getValidatedManifest | ||
* @see https://github.com/mozilla/web-ext?tab=readme-ov-file#using-web-ext-in-nodejs-code | ||
* @see https://github.com/mozilla/web-ext/blob/master/src/util/manifest.js#L15 | ||
*/ | ||
export function getValidatedManifest(_sourceDir?: string) { | ||
return { | ||
manifest_version: 2, | ||
name: "zoterp-plugin-scaffold-fake-name", | ||
version: "0.0.0.0", | ||
}; | ||
} |
5fa7a2d
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.
这是要有什么大动作吗
5fa7a2d
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.
啊?没有,只是看到这样可以跳过 web-ext 对 manifest 的验证,确实没必要加 gecko 这个对 zotero 没有用的属性。
你想要什么动作? 😂
5fa7a2d
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.
算了,我想多了