Options
All
  • Public
  • Public/Protected
  • All
Menu

External module scripts/my_utils

Misc. utility methods

Index

Functions

allowPush

  • allowPush(): boolean

allowReceive

  • allowReceive(): boolean

canSend

  • canSend(): boolean

getEmail

  • getEmail(): string

getEmailBody

  • getEmailBody(): string

getEmailUrl

  • getEmailUrl(subject: string, body: string): string
  • Get encoded url for an email

    Parameters

    • subject: string

      email subject

    • body: string

      email body

    Returns string

    encoded url

getGithubPagesPath

  • getGithubPagesPath(): "http://127.0.0.1:4000/" | "https://pushy-clipboard.github.io/"
  • Get our Github pages base path

    Returns "http://127.0.0.1:4000/" | "https://pushy-clipboard.github.io/"

getGithubPath

  • getGithubPath(): string

getRelativeTime

  • getRelativeTime(time: number): string
  • Get a date string in time ago format

    Parameters

    • time: number

      time since epoch in millis

    Returns string

    string in moment from now format

getStorageDuration

  • getStorageDuration(): number

isAutoBackup

  • isAutoBackup(): boolean

isAutoSend

  • isAutoSend(): boolean

isMonitorClipboard

  • isMonitorClipboard(): boolean

isRegistered

  • isRegistered(): boolean

isSignedIn

  • isSignedIn(): boolean

setBadgeText

  • setBadgeText(): void

showMainTab

  • showMainTab(route?: string): void
  • Send message to the main tab to focus it. If not found, create it

    Parameters

    • Default value route: string = "page-main"

      the page to route to

    Returns void

Generated using TypeDoc