1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-12 09:36:32 +02:00

prevent lemonsqueezy from loading in extension

This commit is contained in:
Kushagra Gour
2024-05-11 15:29:44 +05:30
parent 74461dc589
commit eb4e49e69e

View File

@ -3,6 +3,8 @@ import { useState, useEffect } from 'react';
function useCheckout() {
const [hasVendorScriptLoaded, setHasVendorScriptLoaded] = useState();
useEffect(() => {
if (window.IS_EXTENSION) return;
const script = document.createElement('script');
script.src = 'https://app.lemonsqueezy.com/js/lemon.js';
script.async = 'true';