Is there a way to dynamically change the logo inside an embedded SVG using JavaScript? The image link for the logo is defined in a pattern and applied to a container.
<pattern id="logo"
patternUnits="objectBoundingBox"
x="0" y="0" width="1" height="1">
<image x="0" y="0"
xlink:href="link_to_logo.svg"
width="331" height="331">
</image>
</pattern>
<path id="logo-container" d="M1152 99h331v331h-331z" fill="url(#logo)"/>