File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -214,40 +214,6 @@ export class UmbAppElement extends UmbLitElement {
214
214
}
215
215
}
216
216
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
-
251
217
// TODO: move set initial auth state into auth context
252
218
async #setAuthStatus( ) {
253
219
if ( this . bypassAuth ) return ;
You can’t perform that action at this time.
0 commit comments