I do some customise on the Moodle mobile 2 and create an app for the higher education institution I work in. I meet a problem now. Since my institution has only one Moodle site, I want to set the Moodle site URL my institution use as a default URL and hide the page of typing in URL from users.

I also tried the way that mentioned on Moodle mobile customise guide written by Juan Leyva of changing the initial screen (add site) on page 20 (https://docs.google.com/presentation/d/1HX5h7zwtay4amaY3qyLuCLfI7kQCiD9IoWuDH-lSa_0/edit?pli=1#slide=id.gb58f8c5e5_0_101). However, it seems not work when I test the app with Google Chromium.
Here is the code after I change it, according to the guide:
I would be very grateful if someone can help me with it. I am sure this function is also very useful for developers in some other institutions.