I have multiple javascript files, and userIsLoggedin
function is exist in all of them, i want after user log in, userIsLoggedin
function call in all javascript files.
there is my code:
login.js
...
userIsLoggedin();
...
file_1.js
...
function userIsLoggedin(){ ... }
...
file_2.js
...
function userIsLoggedin(){ ... }
...
file_3.js
...
function userIsLoggedin(){ ... }
...
...
file_n.js
...
function userIsLoggedin(){ ... }
...
but it call only userIsLoggedin
function in file_n.js
file.