mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-07 05:59:02 +00:00
fix cjs internal reference to registry.get
This commit is contained in:
parent
461533fa07
commit
39f66c5bb8
@ -126,7 +126,7 @@ module.exports.enabled = async (id) => {
|
|||||||
* @returns {string|number|boolean|undefined} the option's default value
|
* @returns {string|number|boolean|undefined} the option's default value
|
||||||
*/
|
*/
|
||||||
module.exports.optionDefault = async (id, key) => {
|
module.exports.optionDefault = async (id, key) => {
|
||||||
const mod = await get(id),
|
const mod = await module.exports.get(id),
|
||||||
opt = mod.options.find((opt) => opt.key === key);
|
opt = mod.options.find((opt) => opt.key === key);
|
||||||
if (!opt) return undefined;
|
if (!opt) return undefined;
|
||||||
switch (opt.type) {
|
switch (opt.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user