gdpr-consent
Version:
GDPR banner to comply with the European cookie law. Inspired by tarteaucitronjs.
18 lines (16 loc) • 511 B
text/typescript
import { ServiceInterface, ServiceLoader } from "../interfaces/index.js";
import { addScript } from "../utils/index.js";
export const twitter = ((): ServiceInterface => {
return {
key: "twitter",
type: "social",
name: "X (formerly Twitter)",
uri: "https://support.twitter.com/articles/20170514",
needConsent: true,
lazyConsent: false,
cookies: [],
js: function () {
addScript("//platform.twitter.com/widgets.js", { id: "twitter-wjs" });
},
};
}) as ServiceLoader;