Addon only working on testing. Window.onload not working

Kathleen Jacobs
Contributor
September 9, 2018

In a testing environment, my addon works (using atlas-run on localhost). In a vm file I have my function and then I call it with:

window.onload = function() {
changeCSS();
};

But after I package it and upload it to my production server of the software, it stops working. I ran the function with js while inspecting the page, so i know the function is there and works.  So it seems that windows.onload isn't working.

Am I missing something?  

0 answers

Suggest an answer

Log in or Sign up to answer