Sallynger Posted December 24, 2019 Posted December 24, 2019 (edited) Hi. I call a function in main.js from login.js. But it gives me such an error. I call the function like this mp.events.add('RegResultFalse', () => { mp.events.call('executeFunction', ['emailStatus']); }) the function in login.js is described as: function emailStatus() { $("#emailStatus").removeClass("hide"); } Tell me what am I doing wrong? Thank you in advance. In parallel with this, I read the wiki, if I find the answer, I will write Edited December 24, 2019 by Sallynger
biostunt Posted December 26, 2019 Posted December 26, 2019 If u want to call CEF function from client-side you need to write browser.execute(`someFunc(${args})`); If u want to call client-side from CEF you need to write mp.trigger('functionName', args0, args2);
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now