Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattmog committed Nov 9, 2024
2 parents 561dd42 + b683053 commit f1afdc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main # Trigger deployment on pushes to the main branch

permissions:
contents: read # Allow reading the content of the repository
id-token: write # Allow writing the ID token required for deployment

jobs:
deploy-frontend:
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions Frontend/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ function resetCheck () {
document.getElementById("check-label").classList.remove("err-message")
document.getElementById("terms").classList.remove("terms-err")
}
if (window.location.hostname !== "instagramtoolfront.duckdns.org") {
if (window.location.hostname !== "instagramtoolfront.duckdns.org" || window.location.hostname !== "localhost") {
// Redirect to HTTPS and the desired subdomain
window.location.href = "https://instagramtoolfront.duckdns.org" + window.location.pathname;
}
}
window.onload = async function() {
const res = await fetch(baseUrl + '/protected', {
method: 'GET',
Expand Down

0 comments on commit f1afdc7

Please sign in to comment.