From d229d6e627be67af715468a27257acb47c28817c Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 15 Sep 2021 11:45:42 +0800 Subject: [PATCH] udpate: rewarded-video --- docs/api/a-d/rewarded-video.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/api/a-d/rewarded-video.md b/docs/api/a-d/rewarded-video.md index f5fd962f8..100cdfd5e 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) } -- GitLab