Skip to content

Commit

Permalink
Deprecate isAdBlocked
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Dec 21, 2023
1 parent 3e73102 commit ea2bca6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
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

0 comments on commit ea2bca6

Please sign in to comment.