( uuid: string, code: string, url: string, source: InstallSource, metadata: SCMetadata )
| 15 | |
| 16 | // 供 getInstallInfo 使用 |
| 17 | function createScriptInfo( |
| 18 | uuid: string, |
| 19 | code: string, |
| 20 | url: string, |
| 21 | source: InstallSource, |
| 22 | metadata: SCMetadata |
| 23 | ): ScriptInfo { |
| 24 | const userSubscribe = metadata.usersubscribe !== undefined; |
| 25 | return { uuid, code, url, source, metadata, userSubscribe } as ScriptInfo; |
| 26 | } |
| 27 | |
| 28 | const saveTempCode = async (tempUUID: string, code: string) => { |
| 29 | const folder = await navigator.storage |
no outgoing calls
no test coverage detected