I have a file with scripts stored in the files library. It is used in many surveys created by different people. I've written a new version of one of its functions and therefore I need to replace the current file with a new one. So far I have been doing this by clicking "Edit" and "Choose another file from your computer". Unfortunately, this time it doesn't work. I found out that the problem is in this line of my script: `jQuery('#scriptDiv').html('<script async defer crossorigin="anonymous" src="https://connect.facebook.net/'+ lang + '/sdk.js#xfbml=1&version=v3.0"></script>'); ` When I remove it, everything works fine. I'm also able to upload my script with this line as a new file. However, this doesn't solve my problem since I need to use the original URL which is already used by many surveys. Would anyone have an idea what to do with this?
Best answer by fleb
View original