Angular Material "Platform" module fails to detect Edge browser

Viewed 270

I added the Platform module to my project, but it fails to detect Edge browsers (Material V12.2.7, Windows 10, Edge V94).

I created this StackBlitz that tests the issue and prints the Platform output, and strangely enough, when I open the StackBlitz from an Edge browser, it fails to detect it.

Does anyone else have this issue or am I doing something wrong?

import { Platform } from '@angular/cdk/platform';
import { Component } from '@angular/core';

@Component({
    ...
})
export class AppComponent {

    isEdge: boolean;

    constructor(private platformService: Platform) {
        this.isEdge = this.platformService.EDGE; // always false!
    }
}

Testing the StackBlitz from Edge browser: enter image description here

1 Answers
Related