Change in updated flashphoner.js causes error

SLM

Member
Since implementing version 2.0.198 of the javascript Flashphoner Web SDK we received "Browser is not defined" javascript errors.

It seems that pages/scripts based on this version need to have an extra declaration added to it :
var Browser = Flashphoner.Browser;

After that, scripts work again. Up until version 2.0.171 at least, this seperate variable declaration was not required.

I don't know why this has changed (seems like unneeded overhead), but it would be nice if we were notified of these kinds of changes that break execution of existing scripts and preferaby on the download page itself:

Thanks
 

Max

Administrator
Staff member
Good day.
It seems that pages/scripts based on this version need to have an extra declaration added to it :
var Browser = Flashphoner.Browser;
Yes, this changed in all examples since build 2.0.179 (on GitHub and in NPM package too). We added Browser object aexport from Flashphoner namespace and removed dubbing code from dependencies, so this change is necessary fro backward compatibility.
 
Top