mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-02 16:20:36 -05:00
Try something with RAMP
This commit is contained in:
@@ -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([
|
||||
|
||||
11
app/root.tsx
11
app/root.tsx
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user