Need page refresh after article is puhlished

Hi. I need to add a page refresh in javascript as soon as the article is finished publishing. (After confirming publication in the workflow).
I have created a custom plugin that adjusts the workflow, but I couldn’t find a place in the code to add this refresh. I only found build.js, but I shouldn’t edit it. Could you please advise me where to add it?
Thank you very much.

I am using OJS 3.3.0-10

Hi @hubis23

You can add your own scripts and CSS files via the addJavaScript method in the TemplateManager class. There are examples in the documentation for constructing a plugin:

https://docs.pkp.sfu.ca/dev/plugin-guide/en/examples-styles-scripts

Best
Jason