Adding Javascript to theme app


Hi, I’m trying to use javascript in theme app. I’ve searched for two days, yet still don’t know how to do it. I just want to add sync client links to login page and to do this, I want to use javascript. I’ve checked and tried the solution presented in this link How to add javascript add on every page? . However, it didn’t work for me.