Remove warning that browser already supports <dialog>
Polyfills probably don't need to warn users that their browser already supports the feature they're polyfilling.
This commit is contained in:
Родитель
758cd75bea
Коммит
511aaa7373
|
@ -326,12 +326,10 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* @param {!Element} element to upgrade
|
||||
* @param {!Element} element to upgrade, if necessary
|
||||
*/
|
||||
dialogPolyfill.registerDialog = function(element) {
|
||||
if (element.showModal) {
|
||||
console.warn('Can\'t upgrade <dialog>: already supported', element);
|
||||
} else {
|
||||
if (!element.showModal) {
|
||||
dialogPolyfill.forceRegisterDialog(element);
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче