diff --git a/js/methods.js b/js/methods.js index f82c2cc..e5db0ff 100644 --- a/js/methods.js +++ b/js/methods.js @@ -504,6 +504,9 @@ function toggleHpet(value) { }); } +/** + * Any element containing class "windows-only" will be hidden on other platform. + */ function handlePlatformSpecificDisplay() { var windows_only_elements = document.getElementsByClassName('windows-only'); if (require('os').platform() !== 'win32') { diff --git a/js/preset.js b/js/preset.js index e3e0692..10d7c83 100644 --- a/js/preset.js +++ b/js/preset.js @@ -1,3 +1,6 @@ +/** + * Will fill the export preset modal textarea with the preset data. + */ function preset_export() { const modalTextArea = document.getElementById('modal-export-preset-textarea'); const settings = require('electron-settings'); @@ -7,6 +10,9 @@ function preset_export() { modalTextArea.innerHTML = btoa(presets); } +/** + * Will import the preset from the export preset modal textarea. + */ function preset_import() { const modalTextArea = document.getElementById('modal-import-preset-textarea'); const settings = require('electron-settings');