AstraOS commited on
Commit
5826cb9
·
verified ·
1 Parent(s): e188db9

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +9 -3
app.js CHANGED
@@ -68,9 +68,15 @@ class SakuraCyberDashboard {
68
  async launchLiveLogs() {
69
  this.log('Starting Log Trace Algorithm...');
70
  try {
71
- const response = await fetch('/launch/live-logs', { method: 'POST' });
72
- const data = await response.json();
73
- this.log(`Log Trace Ready: ${data.status}`);
 
 
 
 
 
 
74
  } catch (error) {
75
  this.log(`Trace Protocol Failure: ${error.message}`);
76
  }
 
68
  async launchLiveLogs() {
69
  this.log('Starting Log Trace Algorithm...');
70
  try {
71
+ const width = Math.min(1000, window.innerWidth * 0.8);
72
+ const height = width * (9 / 16); // 16:9 aspect ratio
73
+ const left = (window.innerWidth - width) / 2;
74
+ const top = (window.innerHeight - height) / 2;
75
+
76
+ window.open(
77
+ 'https://akshay-365.github.io/',
78
+ 'Code Hacks',
79
+ `width=${width},height=${height},left=${left},top=${top}`);
80
  } catch (error) {
81
  this.log(`Trace Protocol Failure: ${error.message}`);
82
  }