Popup
Popup view for Burnt Chrome
Constructor Summary
Private Constructor | ||
private |
Initialize the instance. |
Member Summary
Public Members | ||
public |
background: * Background page. |
|
public |
formData: * Static form data |
|
public |
Last error message |
|
public |
Template element ID |
Method Summary
Public Methods | ||
public |
Add to Whitelist |
|
public |
downloadData(name: string, data: string, type: string) Download the given data to the users computer as a file |
|
public |
importWhitelist(whitelist: whitelist) Import entries from an existing whitelist |
|
public |
Show IntroJS tutorial for whitelist list page |
|
public |
lock() Lock |
|
public |
Show IntroJS tutorial for login page |
|
public |
logout() Logout |
|
public |
removeFromWhitelist(url: string) Remove entry from whitelist |
|
public |
Show error in User Interface |
|
public |
unlock() Unlock |
Private Methods | ||
private |
bind() Bind the events |
|
private |
getContext(): * Generate the context to pass to the template to render. |
|
private |
refresh() Refresh the template |
|
private |
render(id: *, context: *) Render the template with a context |
|
private |
Setup handlebars views to render compiled templates to. |
Private Constructors
Public Members
Public Methods
public downloadData(name: string, data: string, type: string) source
Download the given data to the users computer as a file
public importWhitelist(whitelist: whitelist) source
Import entries from an existing whitelist
Params:
Name | Type | Attribute | Description |
whitelist | whitelist | An existing whitelist to copy entries from |
public removeFromWhitelist(url: string) source
Remove entry from whitelist
Params:
Name | Type | Attribute | Description |
url | string | URL pattern in an existing whitelist entry |
public showError(error: Error) source
Show error in User Interface
Params:
Name | Type | Attribute | Description |
error | Error | The error to show |
Private Methods
private render(id: *, context: *) source
Render the template with a context
Params:
Name | Type | Attribute | Description |
id | * | ||
context | * |