Method signature

Method allows you to check if adblock is enabled on user’s device.

Available only for desktop ok.ru.

FAPI.invokeUIMethod("isAdBlockEnabled")

Call example

function isAdBlockEnabled() {
FAPI.invokeUIMethod("isAdBlockEnabled")
}

Callback example

Callback contains status of adblock - enabled or disabled.

A callback when adblock is enabled

method: “isAdBlockEnabled”

result: “ok”

data: “true”

A callback when adblock is disabled

method: “isAdBlockEnabled”

result: “ok”

data: “false”