Skip to content

HTML code for head of frozen world #1760

@rickmcgeer

Description

@rickmcgeer

What would you like to achieve?
I want to add external script tags to the <head> of a frozen world. I know that I can do it with loadViaScript, but Google is fussy about multiple loads of the chart loader so I want to do it statically in a script tag in head. As I read the code in

$world.execCommand("open browser", {moduleName: "studio/ui.cp.js", packageName: "engageLively--galyleo-dashboard", codeEntity: [{"name":"GalyleoStudioWorld","type":"class-decl"},{"name":"__head_html__","type":"class-instance-getter"}]});

it seemed the way to do this was in the __head_html__ property of the world object, but that code isn't showing up in the built page. So I assume the freezer code has changed since this code was written, so my question is simple: where do I put HTML code that goes into the header. I can always just hand-edit the built index.html, but what a kludge.

How are you trying to achieve that

Alternative solutions
If applicable, what other solutions have you tried?

Additional Resources
Please provide links to any custom code that might be necessary to grasp your problem. Screenshots of custom component, etc. are also appreciated.

Version: Please paste the lively.next commit on which the problem occurred here (use the copy button of the Version Checker in the bottom left corner).
c725a77

Metadata

Metadata

Assignees

No one assigned

    Labels

    📟 support inquiryQuestions that can be answered without changing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions