Skip to content

Commit

Permalink
Fix Github login on topsecret
Browse files Browse the repository at this point in the history
  • Loading branch information
jimirobaer committed Nov 25, 2024
1 parent 3cdd143 commit 74eb788
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions resources/views/front/pages/top-secret/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@
<link href="https://fonts.googleapis.com/css2?family=Special+Elite&display=swap" rel="stylesheet">
@endpush

@push('scripts')
<script>
function showGitHubAuthWindow() {
const authWindow = window.open(
'{{ route('github-login') }}',
null,
'location=0,status=0,width=800,height=400'
);
const authCheckInterval = window.setInterval(() => {
if (authWindow.closed) {
window.clearInterval(authCheckInterval);
window.location.replace('{{ session('next', "/") }}');
}
}, 500);
}
</script>
@endpush

<div class="w-full max-w-[800px] mx-auto">
<header class="absolute grid grid-cols-3 h-16 items-center z-10 w-full">

Expand Down
2 changes: 2 additions & 0 deletions resources/views/layout/blank.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

<x-impersonate::banner/>

@stack('scripts')

<script defer src="https://unpkg.com/@alpinejs/[email protected]/dist/cdn.min.js"></script>

{!! schema()->localBusiness() !!}
Expand Down

0 comments on commit 74eb788

Please sign in to comment.