From dc4cdf53560afaaf67c78ef3132c48281d183755 Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Fri, 12 Apr 2024 14:37:09 +0530 Subject: [PATCH] Fix: Migrate from unpkg to jsdelivr Signed-off-by: George J Padayatti --- src/pages/dataintermediation.js | 2 +- src/pages/datamarketplace.js | 2 +- src/pages/domain.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/dataintermediation.js b/src/pages/dataintermediation.js index f21d15e..5f4a87d 100644 --- a/src/pages/dataintermediation.js +++ b/src/pages/dataintermediation.js @@ -40,7 +40,7 @@ export default function DataIntermediation() { {() => { const script = document.createElement("script"); - script.src = 'https://unpkg.com/rapidoc/dist/rapidoc-min.js'; // whatever url you want here + script.src = 'https://cdn.jsdelivr.net/gh/rapi-doc/RapiDoc@9.3.4/dist/rapidoc.js'; // whatever url you want here script.type = 'module' script.charset = "utf-8"; script.crossOrigin = true; diff --git a/src/pages/datamarketplace.js b/src/pages/datamarketplace.js index ee3c2b4..ac9721c 100644 --- a/src/pages/datamarketplace.js +++ b/src/pages/datamarketplace.js @@ -40,7 +40,7 @@ export default function DataMarketplace() { {() => { const script = document.createElement("script"); - script.src = 'https://unpkg.com/rapidoc/dist/rapidoc-min.js'; // whatever url you want here + script.src = 'https://cdn.jsdelivr.net/gh/rapi-doc/RapiDoc@9.3.4/dist/rapidoc.js'; // whatever url you want here script.type = 'module' script.charset = "utf-8"; script.crossOrigin = true; diff --git a/src/pages/domain.js b/src/pages/domain.js index d433ecc..9b7760e 100644 --- a/src/pages/domain.js +++ b/src/pages/domain.js @@ -40,7 +40,7 @@ export default function Domain() { {() => { const script = document.createElement("script"); - script.src = 'https://unpkg.com/rapidoc/dist/rapidoc-min.js'; // whatever url you want here + script.src = 'https://cdn.jsdelivr.net/gh/rapi-doc/RapiDoc@9.3.4/dist/rapidoc.js'; // whatever url you want here script.type = 'module' script.charset = "utf-8"; script.crossOrigin = true;