follow rules

This commit is contained in:
tavo 2024-09-22 11:27:05 -06:00
parent 7feba8caf1
commit c2007566a1
2 changed files with 2 additions and 6 deletions

View file

@ -1,6 +1,3 @@
// const PayPalSDK = "https://sandbox.paypal.com/sdk/js?client-id=AcCW43LI1S6lLQgtLkF4V8UOPfmXcqXQ8xfEl41hRuMxSskR2jkWNwQN6Ab1WK7E2E52GNaoYBHqgIKd&components=buttons&enable-funding=card&disable-funding=paylater,venmo"
const PayPalSDK = "https://paypal.com/sdk/js?client-id=AUm4S44vdasfvVjG6oaQBc9ivbI92ofrfvL8-ItRjwSgtxuJyzkRRhKLabXMbehC7t-nxGdqhD58qasD&components=buttons&enable-funding=card&disable-funding=paylater,venmo"
const EditorJSComponents = [ const EditorJSComponents = [
"https://cdn.jsdelivr.net/npm/@editorjs/header@latest", "https://cdn.jsdelivr.net/npm/@editorjs/header@latest",
"https://cdn.jsdelivr.net/npm/@editorjs/image@latest", "https://cdn.jsdelivr.net/npm/@editorjs/image@latest",
@ -36,9 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
loadEditorState(); loadEditorState();
}).catch(err => console.error("Error loading editor:", err)); }).catch(err => console.error("Error loading editor:", err));
loadScript(PayPalSDK).then(() => { loadScript("/paypal.js").catch(err => console.error(err));
return loadScript("/paypal.js");
}).catch(err => console.error(err));
initializeEventListeners(); initializeEventListeners();
}); });

View file

@ -127,5 +127,6 @@
</button> </button>
</div> </div>
</div> </div>
<script src="https://www.paypal.com/sdk/js?client-id=AUm4S44vdasfvVjG6oaQBc9ivbI92ofrfvL8-ItRjwSgtxuJyzkRRhKLabXMbehC7t-nxGdqhD58qasD&components=buttons&enable-funding=card&disable-funding=paylater,venmo" data-sdk-integration-source="integrationbuilder_sc"></script>
<script src="/client.js"></script> <script src="/client.js"></script>
</html> </html>