Class: UiHelper

UiHelper()

new UiHelper()

Helper functions for user interface everything directly UI-related, which fits nowhere else
Source:

Methods

(private, static) historyChange(event)

handle history (pop) state changes currently this does only handle redirects to the home page.
Parameters:
Name Type Description
event Event
Source:

(static) init()

initialize
Source:

(static) mockHistoryChange(state)

trigger a history (pop) state change used to test the UiHelper.historyChange private function
Parameters:
Name Type Description
state string (optional) state to mock
Source:

(static) reloadHome()

reload the page This takes the user to the PrivateBin homepage.
Source: