From dcd735668f43f04d48df8fe9dfe592d037480e04 Mon Sep 17 00:00:00 2001 From: Quentin DECAUNES Date: Fri, 5 Jul 2019 10:06:10 +0200 Subject: [PATCH] Added missing function docs. --- js/methods.js | 3 +++ js/preset.js | 6 ++++++ 2 files changed, 9 insertions(+) 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');