Class: Settings

Settings()

Class to create an object that manages the app settings.

Constructor

new Settings()

Properties:
Name Type Description
LogsViewer object

Holds an instance of the RightView class.

Source:

Methods

appendSettingsForm() → {void}

Appends the HTML settings form.

Source:
Returns:
Type
void

applySettings() → {void}

Applying settings on the app.

Source:
Returns:
Type
void

generateSettingsForm() → {object}

Generates an HTML form for the settings.

Source:
Returns:
  • returns an HTML
Type
object

isNotificationSoundOn() → {boolean}

Returns true if the sound is on and returns false if the sound is off.

Source:
Returns:
Type
boolean

playSound() → {void}

Play sound.

Source:
Returns:
Type
void

saveSettings() → {void}

Saves new settings to the local storage.

Source:
Returns:
Type
void