Skip to content

Bag in wiki #68

@kutuluk

Description

@kutuluk

https://github.com/GameDistribution/GD-HTML5/wiki/SDK-Implementation

bag:

nextButton.addEventListener('mouseUp', function () {
    if (typeof gdsdk !== 'undefined' && gdsdk.showBanner !== 'undefined') {
         gdsdk.showBanner();
    }
});

good:

nextButton.addEventListener('mouseUp', function () {
    if (typeof gdsdk !== 'undefined' && gdsdk.showBanner !== undefined) {
         gdsdk.showBanner();
    }
});

very good:

nextButton.addEventListener('mouseUp', function () {
    if (typeof gdsdk !== 'undefined' && gdsdk.showBanner) {
         gdsdk.showBanner();
    }
});

perfect:

nextButton.addEventListener('mouseUp', function () {
    window.gdsdk && gdsdk.showBanner && gdsdk.showBanner();
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions