Try something with RAMP

This commit is contained in:
Kalle
2024-11-29 17:37:56 +02:00
parent c440342cf6
commit 1a6296ecee
2 changed files with 14 additions and 5 deletions

View File

@@ -5,11 +5,7 @@
//
import React from "react";
window.ramp = window.ramp || {};
window.ramp.que = window.ramp.que || [];
window.ramp.passiveMode = true;
window._pwRampComponentLoaded = window._pwRampComponentLoaded || false;
import { logger } from "../../utils/logger";
const oopUnits = [
"trendi_slideshow",
@@ -71,6 +67,8 @@ export default class Ramp extends React.Component {
}
displayTaglessUnits() {
logger.info("Displaying tagless units");
window.ramp.que.push(() => {
window.ramp
.addUnits([

View File

@@ -147,6 +147,17 @@ function Document({
return (
<html lang={locale} dir={i18n.dir()} className={htmlThemeClass}>
<head>
<script
// biome-ignore lint/security/noDangerouslySetInnerHtml: needed for Ramp.tsx
dangerouslySetInnerHTML={{
__html: `
window.ramp = window.ramp || {};
window.ramp.que = window.ramp.que || [];
window.ramp.passiveMode = true;
window._pwRampComponentLoaded = window._pwRampComponentLoaded || false;
`,
}}
/>
<meta charSet="utf-8" />
<meta
name="viewport"