made installer and seperated stuff into diferent files
This commit is contained in:
15
ProjectKiln/app/js/home/dashboard.js
Normal file
15
ProjectKiln/app/js/home/dashboard.js
Normal file
@@ -0,0 +1,15 @@
|
||||
function loadDashboard(pushHistory = true) {
|
||||
showView('dashboardView');
|
||||
|
||||
if (!pushHistory) return;
|
||||
|
||||
const url = new URL(window.location.href);
|
||||
url.searchParams.set('page', 'home');
|
||||
url.searchParams.delete('task');
|
||||
url.searchParams.delete('project');
|
||||
url.searchParams.delete('tasks');
|
||||
url.searchParams.delete('version');
|
||||
url.searchParams.delete('profile');
|
||||
url.searchParams.delete('admin');
|
||||
window.history.pushState({}, '', url);
|
||||
}
|
||||
Reference in New Issue
Block a user