Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate isAdBlocked #11

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ poki_sdk.set_debug(value) -- in JS it's PokiSDK.setDebug(value)
poki_sdk.capture_error(error_string) -- in JS it's PokiSDK.captureError(error_string)
poki_sdk.shareable_url(params, callback) -- in JS it's PokiSDK.shareableURL({}).then(url => {})
local value = poki_sdk.get_url_param(key) -- in JS it's PokiSDK.getURLParam('id')

-- Also, it's possible to check if AdBlock is active.
poki_sdk.is_ad_blocked()
```


Expand Down
5 changes: 0 additions & 5 deletions poki-sdk/api/poki-sdk.script_api
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,3 @@

#*****************************************************************************************************

- name: is_ad_blocked
type: function

#*****************************************************************************************************

3 changes: 2 additions & 1 deletion poki-sdk/lib/web/lib_pokisdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ var LibPokiSdk = {
},

PokiSdkJs_IsAdBlocked: function() {
return PokiSDK.isAdBlocked();
console.log("poki_sdk.is_ad_blocked() is deprecated.");
return false;
},

PokiSdkJs_AddParameterForURL: function(key, value) {
Expand Down