Firefox Quantum viewerready not firing


(Shaderbytes) #1

version 59.0.2 (64-bit) using the api viewerready is not firing, the iframe is not hidden.


(Paul Sketch) #2

Works here on firefox 59.0.2 (64-bit) windows 10.

Could you provide URL ?


(Shaderbytes) #3

sent in a pm… there are console traces i added to test … it doesnt fire the function for the trace to occure


(Shaderbytes) #4

this is using my api but there is nothing weird happening here from my side :

 this.onClientInit = function (apiRef) {
        console.log("onClientInit called");
        classScope.api = apiRef;      
        classScope.api.addEventListener('viewerready', classScope.onViewerReady);
        classScope.api.start();
    };

    this.onViewerReady = function () {
       console.log("onViewerReady called");
        ...

       

    }; 

this first log is happening but not the second


(Shaderbytes) #5

could it be the viewer url im using :

src=“https://d1jlf623bx36qa.cloudfront.net/api/sketchfab-viewer-1.0.0.js

i see on your example page you have another url now :

src=“https://static.sketchfab.com/api/sketchfab-viewer-1.1.0.js

??


(Shaderbytes) #6

nice i updated it and that seemed to fix it

perhaps take down the other link so it will throw an error instead of causing havoc :wink:


#7

Where are we using the old cloudfront URL?


(Shaderbytes) #8

well all my projects that use the API recently , I remember having even another url before and had to change to the one im using now , so this is the second time it is changing for me.

Honestly this url should be killed, it would have then thrown an error to load it. Much better than it loads but doesnt work properly :wink: