-
Notifications
You must be signed in to change notification settings - Fork 0
/
modWindow.js
35 lines (24 loc) · 1.26 KB
/
modWindow.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// All of the Node.js APIs are available in the preload process.
// It has the same sandbox as a Chrome extension.
window.addEventListener('DOMContentLoaded', () => {
// Remove default background image
document.getElementById('pedalboard-dashboard').style.background = 'none'
// Initialize window title using pedalboard name
document.title = document.getElementById('pedalboard-info').getElementsByTagName('h1')[0].innerText
// Remove web gui top menu
document.getElementById('pedalboard-actions').style.display = 'none'
const dashboardContainer = document.querySelectorAll('#pedalboard > div')[3]
dashboardContainer.style.top = '0px'
// Remve file manager menu item
document.getElementById('mod-file-manager').style.display = 'none'
// Remove plugin-store menu item
document.getElementById('mod-cloud-plugins').style.display = 'none'
// Remove MIDI settings menu item
document.getElementById('mod-show-midi-port').style.display = 'none'
// Remove MOD settings menu item
document.getElementById('mod-settings').style.display = 'none'
// Remove constructor menu item
document.getElementById('mod-plugins').style.display = 'none'
// Remove pedalboard library menu item
document.getElementById('mod-pedalboard').style.display = 'none'
})