Skip to content

Commit

Permalink
Merge pull request #5 from Kevin-Kwan/deepsource-autofix-0f27db0e
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Kwan authored Dec 19, 2023
2 parents f174ada + 6ccb4eb commit 5de72e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/resume.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function Resume() {
}

function loadViewerScript() {
if (window.AdobeDC && window.AdobeDC.View) {
if (window.AdobeDC?.View) {
setTimeout(initializeAdobeDCView, 100); // Delay the call to ensure the SDK is loaded
} else {
var viewerScript = document.createElement('script');
Expand Down

0 comments on commit 5de72e8

Please sign in to comment.