We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ae587 commit bb9cfecCopy full SHA for bb9cfec
src/lib/progress-bar/progress-bar.ts
@@ -94,7 +94,7 @@ export class MatProgressBar extends _MatProgressBarMixinBase implements CanColor
94
// `Location` from `@angular/common` since we can't tell the difference between whether
95
// the consumer is using the hash location strategy or not, because `Location` normalizes
96
// both `/#/foo/bar` and `/foo/bar` to the same thing.
97
- const path = location ? location.pathname.split('#')[0] : '';
+ const path = location && location.pathname ? location.pathname.split('#')[0] : '';
98
this._rectangleFillValue = `url('${path}#${this.progressbarId}')`;
99
}
100
0 commit comments