diff --git a/dom/nfc/nsNfc.js b/dom/nfc/nsNfc.js index ccbaad40202..6f97e04febe 100644 --- a/dom/nfc/nsNfc.js +++ b/dom/nfc/nsNfc.js @@ -212,7 +212,7 @@ mozNfc.prototype = { return null; } - if (!this.nfcObject) { + if (!this.nfcObject || this.nfcObject.token != sessionToken) { let obj = new MozNFCPeer(); obj.initialize(this._window, sessionToken); this.nfcObject = obj;