auth plugin using user_authenticated_hook

auth plugin using user_authenticated_hook

од Omprakash Patel -
Број на одговори: 0

Hi, I have to build an authentication plugin,  and it's working well, Just I want to add javascript file using amd/src/myfile.js 
Like 
$PAGE->requires->js_call_amd('plugin_name/myfile', 'init', []);

So is it possible to add a javascript file for all moodle pages using the auth plugin? 
Or only we can add a javascript file using a local plugin? 
Can you please let me know how can we add a javascript file for all pages. using the plugin of auth?

Thank you!

Просек на рејтинзи: -