From 744034e2b28dd15802e843d35db5948a69d88054 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 22 Apr 2023 19:42:55 -0700 Subject: [PATCH] Update CDN --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); ``` -- 2.47.3