initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export async function resizeLayout() {
|
||||
try {
|
||||
if (window.require) {
|
||||
const { ipcRenderer } = window.require('electron');
|
||||
const result = await ipcRenderer.invoke('update-sizes');
|
||||
if (result.success) {
|
||||
console.log('Window resized for current view');
|
||||
} else {
|
||||
console.error('Failed to resize window:', result.error);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error resizing window:', error);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user