Jump to content


Webworkers (SMS 2.2.2)

  • Please log in to reply
No replies to this topic

#1 Nortg

  • Members
  • 3 posts

Posted 08 July 2017 - 03:52 PM

looking at the WebWorkers demo (..\Smart Mobile Projects\Demos\Featured Demos\API\WebWorker), it seems to only work because the "worker.js"
("..\API\WebWorker\www\") file was compiled with a different compiler version.

If I actually recompile the worker project with the 2.2.2 compiler the demo then fails and reports the following error : "Uncaught ReferenceError: window is not defined [line #193]".

Project options are set to deploy the compiled file in the "output" folder and not the "www" where all the files are located, as such it is the outdated worker.js file that is served to the browser instead of the freshly compiled.

Steps to reproduce :

1. Open Worker.sproj (..\Smart Mobile Projects\Demos\Featured Demos\API\WebWorker)
2. Compile project
3. Move "worker.js" from \output folder to \www folder
4. run index.html or execute the main project through IDE
  • ielite and Nico Wouterse like this

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users