diff --git a/docs/api/a-d/rewarded-video.md b/docs/api/a-d/rewarded-video.md index f5fd962f89d92684fcf7464283f30f8e27e8999f..100cdfd5e17361524cbb308bfaf1aefc19578924 100644 --- a/docs/api/a-d/rewarded-video.md +++ b/docs/api/a-d/rewarded-video.md @@ -257,8 +257,16 @@ class AdHelper { get(options) { const { - adpid + adpid, + singleton = true } = options + if (singleton === false) { + if (this._ads[adpid]) { + this._ads[adpid].destroy() + delete this._ads[adpid] + } + } + delete options.singleton if (!this._ads[adpid]) { this._ads[adpid] = this._createAdInstance(options) }