This commit is contained in:
jelveh
2025-08-04 22:08:32 -07:00
parent 9f8c0d3227
commit b6fcb78f6e
2 changed files with 7 additions and 1 deletions

View File

@@ -27,10 +27,11 @@ window.auth_username = null;
window.dev_center_uid = puter.appID;
window.developer;
window.activeTab = 'apps';
window.user = null;
// auth_username
(async () => {
let user = await puter.auth.getUser();
window.user = await puter.auth.getUser();
if (user?.username) {
window.auth_username = user.username;
@@ -198,6 +199,8 @@ $('.jip-submit-btn').on('click', async function (e) {
$('.jip-submit-btn').prop('disabled', false);
// update dev profile
$('#payout-method-email').html(paypal);
// show separator
$('.tab-btn-separator').show();
// show payout method tab
$('.tab-btn[data-tab="payout-method"]').show();
},

View File

@@ -61,6 +61,9 @@ $(document).on('click', '.create-a-worker-btn', async function (e) {
return;
}
// refresh user data
window.user = await puter.auth.getUser();
// Step 1: Show file picker limited to .js files
let selectedFile;
try {