@@ -23,6 +23,7 @@ import {
23
23
extractUmbNotificationColor ,
24
24
isUmbNotifications ,
25
25
UMB_NOTIFICATION_CONTEXT ,
26
+ UMB_NOTIFICATION_HEADER ,
26
27
} from '@umbraco-cms/backoffice/notification' ;
27
28
28
29
@customElement ( 'umb-app' )
@@ -219,7 +220,7 @@ export class UmbAppElement extends UmbLitElement {
219
220
220
221
#attachApiInterceptor( ) {
221
222
OpenAPI . interceptors . response . use ( ( response ) => {
222
- const umbNotifications = response . headers . get ( 'umb-notifications' ) ;
223
+ const umbNotifications = response . headers . get ( UMB_NOTIFICATION_HEADER ) ;
223
224
if ( ! umbNotifications ) return response ;
224
225
225
226
const notifications = JSON . parse ( umbNotifications ) ;
@@ -236,7 +237,7 @@ export class UmbAppElement extends UmbLitElement {
236
237
const newHeader = new Headers ( ) ;
237
238
for ( const header of response . headers . entries ( ) ) {
238
239
const [ key , value ] = header ;
239
- if ( key !== 'umb-notifications' ) newHeader . set ( key , value ) ;
240
+ if ( key !== UMB_NOTIFICATION_HEADER ) newHeader . set ( key , value ) ;
240
241
}
241
242
242
243
const newResponse = new Response ( response . body , {
0 commit comments