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:
@ -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';
|
||||
|
Reference in New Issue
Block a user