mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Added Bundle.prototype.isFrozen getter and used it to close pass if it is not yet frozen
This commit is contained in:
@@ -465,7 +465,9 @@ export default class PKPass extends Bundle {
|
||||
* @TODO warning if no icon files
|
||||
*/
|
||||
|
||||
this[closePassSymbol]();
|
||||
if (!this.isFrozen) {
|
||||
this[closePassSymbol]();
|
||||
}
|
||||
|
||||
return super.getAsBuffer();
|
||||
}
|
||||
@@ -486,7 +488,9 @@ export default class PKPass extends Bundle {
|
||||
* @TODO warning if no icon files
|
||||
*/
|
||||
|
||||
this[closePassSymbol]();
|
||||
if (!this.isFrozen) {
|
||||
this[closePassSymbol]();
|
||||
}
|
||||
|
||||
return super.getAsStream();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user