page

Playtech.API. page

Methods

# (static) isPageInPopupUrl() → {boolean}

Get whether page is in popup or non-custom quickDepositPage or is static page i.e. /online-game/ or is bonus page.
Returns:
Type
boolean
Example
// false
Playtech.API.page.isPageInPopupUrl();

# (static) requestPageInPopupUpdate()

Triggers pageInfo request.
Example
Playtech.API.page.requestPageInPopupUpdate();

# (static) requestPageUpdate()

Triggers pageInfo request.
Example
Playtech.API.page.requestPageUpdate();

# (static) updatePageSeoTags(seoTags)

Updates SEO tags for current page.
Parameters:
Name Type Description
seoTags Object
Properties
Name Type Attributes Description
canonical string | null <optional>
Overrides current value, if value is falsy - removes tag if it existed before
description string | null <optional>
Overrides current value
keywords string | null <optional>
Overrides current value
robots string | null <optional>
Overrides current value
title string <optional>
Overrides current value, if value is falsy - page title won't change
Example
Playtech.API.page.updatePageSeoTags({ title: 'Your Halloween bonus', robots: 'unavailable_after: 2024-10-31', keywords: null, canonical: '' });