fix: removing hardcode of js init

This commit is contained in:
efim 2023-10-08 18:23:04 +00:00
parent ea8d1fab75
commit c032987952
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@
</dialog>
<script defer type="text/javascript">
async function callOauth(providerName) {
const pb = new PocketBase("http://127.0.0.1:8090");
const baseUrl = window.location.protocol + "//" + window.location.host;
const pb = new PocketBase(baseUrl);
// This method initializes a one-off realtime subscription and will
// open a popup window with the OAuth2 vendor page to authenticate.