Skip to content

Commit

Permalink
rc4 - catch exception
Browse files Browse the repository at this point in the history
  • Loading branch information
melissag-ensemble committed Jun 21, 2024
1 parent 44d2608 commit 07bd231
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby-theme-aio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/gatsby-theme-aio",
"version": "4.11.16-rc3",
"version": "4.11.16-rc4",
"description": "The Adobe I/O theme for building markdown powered sites",
"main": "index.js",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,20 @@ const RedoclyAPIBlock = ({
}

// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import#importing_on-demand_in_response_to_user_action
let module;
console.log('~~ 1');
if(requestInterceptorSrc) {
console.log('~~ 2');
import(requestInterceptorSrc).then((mod) => {
module = mod;
console.log('~~ 3', mod, module);
});
import(requestInterceptorSrc)
.then((mod) => {
console.log('~~ 3', mod);
})
.catch((err) => {
console.log('~~ 4', err.message);
});
}
console.log('~~ 4');
console.log('~~ 5');

useEffect(() => {
let script = document.createElement('script')
Expand Down

0 comments on commit 07bd231

Please sign in to comment.