Forward data-reopen-widget from script tag in IIFE entry point
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -33,6 +33,11 @@ if (script) {
|
||||
el.setAttribute("position", position);
|
||||
}
|
||||
|
||||
const reopenWidget = script.getAttribute("data-reopen-widget");
|
||||
if (reopenWidget) {
|
||||
el.setAttribute("reopen-widget", reopenWidget);
|
||||
}
|
||||
|
||||
document.body.appendChild(el);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user