From c2007566a19f1e179273d8d0d0039e1157ff3ad8 Mon Sep 17 00:00:00 2001 From: tavo Date: Sun, 22 Sep 2024 11:27:05 -0600 Subject: [PATCH] follow rules --- public/client.js | 7 +------ public/index.html | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/public/client.js b/public/client.js index 992992e..518abc0 100644 --- a/public/client.js +++ b/public/client.js @@ -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 = [ "https://cdn.jsdelivr.net/npm/@editorjs/header@latest", "https://cdn.jsdelivr.net/npm/@editorjs/image@latest", @@ -36,9 +33,7 @@ document.addEventListener("DOMContentLoaded", function () { loadEditorState(); }).catch(err => console.error("Error loading editor:", err)); - loadScript(PayPalSDK).then(() => { - return loadScript("/paypal.js"); - }).catch(err => console.error(err)); + loadScript("/paypal.js").catch(err => console.error(err)); initializeEventListeners(); }); diff --git a/public/index.html b/public/index.html index 5326c42..6d12ab8 100644 --- a/public/index.html +++ b/public/index.html @@ -127,5 +127,6 @@ +