Skip to content

Commit 9124907

Browse files
committed
cleanup
1 parent a50b5eb commit 9124907

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/apps/app/app.element.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -214,40 +214,6 @@ export class UmbAppElement extends UmbLitElement {
214214
}
215215
}
216216

217-
/*
218-
#attachApiInterceptor() {
219-
OpenAPI.interceptors.response.use((response) => {
220-
const umbNotifications = response.headers.get(UMB_NOTIFICATION_HEADER);
221-
if (!umbNotifications) return response;
222-
223-
const notifications = JSON.parse(umbNotifications);
224-
if (!isUmbNotifications(notifications)) return response;
225-
226-
this.getContext(UMB_NOTIFICATION_CONTEXT).then((notificationContext) => {
227-
for (const notification of notifications) {
228-
notificationContext.peek(extractUmbNotificationColor(notification.type), {
229-
data: { headline: notification.category, message: notification.message },
230-
});
231-
}
232-
});
233-
234-
const newHeader = new Headers();
235-
for (const header of response.headers.entries()) {
236-
const [key, value] = header;
237-
if (key !== UMB_NOTIFICATION_HEADER) newHeader.set(key, value);
238-
}
239-
240-
const newResponse = new Response(response.body, {
241-
headers: newHeader,
242-
status: response.status,
243-
statusText: response.statusText,
244-
});
245-
246-
return newResponse;
247-
});
248-
}
249-
*/
250-
251217
// TODO: move set initial auth state into auth context
252218
async #setAuthStatus() {
253219
if (this.bypassAuth) return;

0 commit comments

Comments
 (0)