# WebViewer not being initialized in firefox

**URL:** <https://pdfjs.community/t/webviewer-not-being-initialized-in-firefox/435>\
**Category:** Technical Support\
**Created:** [January 5, 2021, 12:12pm UTC](https://pdfjs.community/t/webviewer-not-being-initialized-in-firefox/435 "2021-01-05T12:12:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viveksinghal0003](https://avatars.discourse-cdn.com/v4/letter/v/e19adc/32.png) [@viveksinghal0003](https://pdfjs.community/u/viveksinghal0003)\
**Post date:** [January 5, 2021, 12:12pm UTC](https://pdfjs.community/t/webviewer-not-being-initialized-in-firefox/435/1 "2021-01-05T12:12:20Z")

</div>

version:  
“@pdftron/pdfjs-express”: “^7.0.1”,  
“@pdftron/pdfjs-express-utils”: “^1.2.3”,

**Detailed description of issue**  
I’m using angular and I’m making a stepper in which at 3rd step, webviewer is being used. It’s working fine in chrome but have issue in firefox. If I refresh the page at 3rd step, then webviewer is being initialised and providing its instance but if I refresh the page at any other step and then go to 3rd step using prev or next, then webviewer is not being initialsed.  
edit: The other error code is being is window.utils is not defined in wv-resources/ui/webviewer-ui.min,js. This error is stopping from webviewer initialisation

**Expected behaviour**  
in below code, instance 1 ‘instance’ should be printed but console is not printing that means webviewer is not being initialised.

**Does your issue happen with every document, or just one?**  
{Answer here}

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**  
WebViewer({  
licenseKey: ‘u4Utg1NNWOrQZIX32Rxu’,  
disableFlattenedAnnotations: true,  
path: ‘…/…/wv-resources/lib’,  
config: ‘…/…/wv-resources/lib/ui/config/file.js’, // relative to your HTML file  
disabledElements: [  
‘selectToolButton’, ‘toolbarGroup-Edit’, ‘toolsHeader’, ‘searchButton’, ‘header’,  
‘panToolButton’, ‘toggleNotesButton’, ‘notesPanel’, ‘menuButton’, ‘highlightToolGroupButton’, ‘underlineToolGroupButton’, ‘strikeoutToolGroupButton’, ‘stickyToolGroupButton’, ‘freeHandToolGroupButton’,  
‘toolsOverlay’, ‘viewControlsButton’, ‘leftPanelButton’, ‘toolbarGroup-Insert’, ‘toolbarGroup-Shapes’, ‘squigglyToolGroupButton’, ‘freeTextToolGroupButton’,  
],  
// initialDoc: ‘assets/schedules-pdf/sample\_01.pdf’  
// initialDoc: ‘[https://parspec-product-url.s3.amazonaws.com/media/media/evo-4-open-artc\_S2pu5eE.pdf](https://parspec-product-url.s3.amazonaws.com/media/media/evo-4-open-artc_S2pu5eE.pdf)’  
}, this.viewer.nativeElement).then(instance =\> {  
console.log(‘instance 1’, instance);  
}

 ![Screenshot (108)](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/8aa74f8fd91df0ff09a228d90876c74420ba3d79.png)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [January 5, 2021, 5:12pm UTC](https://pdfjs.community/t/webviewer-not-being-initialized-in-firefox/435/2 "2021-01-05T17:12:50Z")

</div>

Looks to be a duplicate of [Pdf js viewer throwing error on Firefox](https://pdfjs.community/t/pdf-js-viewer-throwing-error-on-firefox/429)

Closing for now. Thanks!

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [January 5, 2021, 5:12pm UTC](https://pdfjs.community/t/webviewer-not-being-initialized-in-firefox/435/3 "2021-01-05T17:12:54Z")

</div>


