@ezeep/ezeep-js 1.0.195 → 1.0.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33185,8 +33185,7 @@ let EzpPrinting = class {
33185
33185
  *
33186
33186
  */
33187
33187
  async open() {
33188
- if (authStore.state.isAuthorized && this.trigger === 'file') {
33189
- this.authOpen = true;
33188
+ if (authStore.state.isAuthorized) {
33190
33189
  if (this.filename) {
33191
33190
  this.printOpen = true;
33192
33191
  }
@@ -33239,6 +33238,7 @@ let EzpPrinting = class {
33239
33238
  })
33240
33239
  .catch(() => {
33241
33240
  authStore.state.isAuthorized = false;
33241
+ localStorage.setItem('isAuthorized', 'false');
33242
33242
  return false;
33243
33243
  });
33244
33244
  if (accessToken === '') {
@@ -88,8 +88,7 @@ export class EzpPrinting {
88
88
  *
89
89
  */
90
90
  async open() {
91
- if (authStore.state.isAuthorized && this.trigger === 'file') {
92
- this.authOpen = true;
91
+ if (authStore.state.isAuthorized) {
93
92
  if (this.filename) {
94
93
  this.printOpen = true;
95
94
  }
@@ -142,6 +141,7 @@ export class EzpPrinting {
142
141
  })
143
142
  .catch(() => {
144
143
  authStore.state.isAuthorized = false;
144
+ localStorage.setItem('isAuthorized', 'false');
145
145
  return false;
146
146
  });
147
147
  if (accessToken === '') {
@@ -33210,8 +33210,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33210
33210
  *
33211
33211
  */
33212
33212
  async open() {
33213
- if (authStore.state.isAuthorized && this.trigger === 'file') {
33214
- this.authOpen = true;
33213
+ if (authStore.state.isAuthorized) {
33215
33214
  if (this.filename) {
33216
33215
  this.printOpen = true;
33217
33216
  }
@@ -33264,6 +33263,7 @@ let EzpPrinting$1 = class extends HTMLElement {
33264
33263
  })
33265
33264
  .catch(() => {
33266
33265
  authStore.state.isAuthorized = false;
33266
+ localStorage.setItem('isAuthorized', 'false');
33267
33267
  return false;
33268
33268
  });
33269
33269
  if (accessToken === '') {
@@ -33181,8 +33181,7 @@ let EzpPrinting = class {
33181
33181
  *
33182
33182
  */
33183
33183
  async open() {
33184
- if (authStore.state.isAuthorized && this.trigger === 'file') {
33185
- this.authOpen = true;
33184
+ if (authStore.state.isAuthorized) {
33186
33185
  if (this.filename) {
33187
33186
  this.printOpen = true;
33188
33187
  }
@@ -33235,6 +33234,7 @@ let EzpPrinting = class {
33235
33234
  })
33236
33235
  .catch(() => {
33237
33236
  authStore.state.isAuthorized = false;
33237
+ localStorage.setItem('isAuthorized', 'false');
33238
33238
  return false;
33239
33239
  });
33240
33240
  if (accessToken === '') {