mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 02:43:44 +08:00
c85018cdfd
* FEATURE: Improve crawler view
* FIX: Make lazyYT crawler-friendly
* DEV: Rename discourse-internet-explorer to discourse-unsupported-browser
* DEV: Detect more unsupported browsers
Follow-up to 4eebbd2212
.
* FIX: Hide browser update notice in print view
13 lines
371 B
JavaScript
13 lines
371 B
JavaScript
if (!window.WeakMap || !window.Promise) {
|
|
window.unsupportedBrowser = true;
|
|
} else {
|
|
// Some implementations of `WeakMap.prototype.has` do not accept false
|
|
// values and Ember's `isClassicDecorator` sometimes does that (it only
|
|
// checks for `null` and `undefined`).
|
|
try {
|
|
new WeakMap().has(0);
|
|
} catch (err) {
|
|
window.unsupportedBrowser = true;
|
|
}
|
|
}
|