Jump to content

Adding a script with params in head tag


NizamUlMulk

Recommended Posts

Hi, I want to add a script with params, as the last code in the head section of html generated by UniGui.
I put the code in MainForm. Script, but doesn´t run.
Ex.
<script 
    src="https://someplace/somejs.js" 
    data-url="someplace/someother/440eb7fb-1b67-4df8-b814-dfced7d51b8c" 
    data-position="bottom-right"
    data-btn-color="#6366f1"
    defer>
</script>

the src, I know, in UniServerModule.CustomFiles .... but with params doesn´t run.
Pasting that code in Script property of mainform, doesn´t work, neither

Neither run adding it with UniAddJSLibrary and [upoPlatformDesktop, upoDefer] as last parameter.

My version is 1.50.0.1482

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...