mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-05 20:50:22 -06:00
wip
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user