(config, result)
| 32 | }; |
| 33 | |
| 34 | const validate = (config, result) => { |
| 35 | if (typeof result === "boolean") throw `Invalid source: ${config}`; |
| 36 | return result; |
| 37 | }; |
| 38 | |
| 39 | const getRelatedScript = (target, type) => { |
| 40 | const editor = target.closest(`.${type}-editor-box`); |