Skip to content

Commit 0727b84

Browse files
agoemansagoemans
and
agoemans
authored
Removed adblock detection (#37)
Co-authored-by: agoemans <[email protected]>
1 parent 4a8cc40 commit 0727b84

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# [0.7.2] - 2021-07-30
8+
### Added
9+
- Removed adblock check, rely on GD failing gracefully now
10+
711
# [0.7.1] - 2021-07-27
812
### Added
913
- Added missing 'export as' statement

Diff for: package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@azerion/h5-ad-wrapper",
33
"author": "Azerion",
4-
"version": "0.7.1",
4+
"version": "0.7.2",
55
"description": "Advertisement provider wrapper, similar to @azerion/phaser-ads but not tied into Phaser :)",
66
"contributors": [
77
{

Diff for: src/Providers/gamedistribution.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ export class GameDistribution implements IProvider {
245245
public adShowing: boolean = false
246246

247247
constructor(gameId: string) {
248-
this.areAdsEnabled()
249248
;(window as any).GD_OPTIONS = {
250249
gameId: gameId,
251250
advertisementSettings: {
@@ -288,11 +287,7 @@ export class GameDistribution implements IProvider {
288287
}
289288

290289
private sdkLoaded(): void {
291-
this.areAdsEnabled().then((enabled: boolean) => {
292-
if (enabled) {
293-
this.adsEnabled = true
294-
}
295-
})
290+
this.adsEnabled = true
296291
}
297292

298293
public showAd(adType: AdType): void {

0 commit comments

Comments
 (0)