Added missing function docs.

This commit is contained in:
Quentin DECAUNES 2019-07-05 10:06:10 +02:00
parent 2e481f36ac
commit dcd735668f
2 changed files with 9 additions and 0 deletions

View File

@ -504,6 +504,9 @@ function toggleHpet(value) {
}); });
} }
/**
* Any element containing class "windows-only" will be hidden on other platform.
*/
function handlePlatformSpecificDisplay() { function handlePlatformSpecificDisplay() {
var windows_only_elements = document.getElementsByClassName('windows-only'); var windows_only_elements = document.getElementsByClassName('windows-only');
if (require('os').platform() !== 'win32') { if (require('os').platform() !== 'win32') {

View File

@ -1,3 +1,6 @@
/**
* Will fill the export preset modal textarea with the preset data.
*/
function preset_export() { function preset_export() {
const modalTextArea = document.getElementById('modal-export-preset-textarea'); const modalTextArea = document.getElementById('modal-export-preset-textarea');
const settings = require('electron-settings'); const settings = require('electron-settings');
@ -7,6 +10,9 @@ function preset_export() {
modalTextArea.innerHTML = btoa(presets); modalTextArea.innerHTML = btoa(presets);
} }
/**
* Will import the preset from the export preset modal textarea.
*/
function preset_import() { function preset_import() {
const modalTextArea = document.getElementById('modal-import-preset-textarea'); const modalTextArea = document.getElementById('modal-import-preset-textarea');
const settings = require('electron-settings'); const settings = require('electron-settings');