From: Ardis Lu Date: Sun, 23 Apr 2023 02:42:55 +0000 (-0700) Subject: Update CDN X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=744034e2b28dd15802e843d35db5948a69d88054;p=static-encrypt Update CDN --- diff --git a/README.md b/README.md index 9411547..9f641f0 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ await Promise.all(encryptedContentList.map(v => globalThis.decrypt(v, 'correctho 1. Import the `decrypt` function provided in `/decrypt.js`: ```javascript -import { decrypt } from 'https://cdn.jsdelivr.net/gh/ardislu/static-encrypt/decrypt.js'; +import { decrypt } from 'https://cdn.statically.io/gh/ardislu/static-encrypt/master/decrypt.js'; ``` 2. Pass the encrypted content string and the password to the `decrypt` function: @@ -67,5 +67,5 @@ plaintext You can also import the function dynamically (useful for lazy-loading or testing in DevTools): ```javascript -const { decrypt } = await import('https://cdn.jsdelivr.net/gh/ardislu/static-encrypt/decrypt.js'); +const { decrypt } = await import('https://cdn.statically.io/gh/ardislu/static-encrypt/master/decrypt.js'); ```