diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 03a6ef4..f54b3c7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ master ] + branches: [ Development ] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] + branches: [ Testing ] schedule: - cron: '22 21 * * 3' diff --git a/src/App.js b/src/App.js index 2b640cb..818b7b3 100644 --- a/src/App.js +++ b/src/App.js @@ -3,7 +3,7 @@ import { PaystackButton } from "react-paystack" import "./App.css" const App = () => { - const publicKey = "pk_your_public_key_here" + const privateKey = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" const amount = 1000000 const [email, setEmail] = useState("") const [name, setName] = useState("") @@ -74,8 +74,22 @@ const App = () => { + + + ) } +if (document.readyState == 'loading') { + document.addEventListener('DOMContentLoaded', ready) +} else { + ready() +} +function ready() { + var query = new URL(window.location).searchParams.get('query') + document.getElementById('query-input').value = query + document.getElementById('query-output').innerHTML = query +} + export default App