| @@ -1,4 +1,5 @@ | ||
| 1 | +(function() { | |
| 1 | 2 | "use strict"; |
| 2 | 3 | var wp; |
| 3 | 4 | (wp ||= {}).viewport = (() => { |
| 4 | 5 | var __create = Object.create; |
| @@ -128,9 +129,9 @@ | ||
| 128 | 129 | ([name, width]) => { |
| 129 | 130 | return operatorEntries.map( |
| 130 | 131 | ([operator, condition]) => { |
| 131 | 132 | const list = window.matchMedia( |
| 132 | - `(${condition}: ${width}px)` | |
| 133 | + `screen and (${condition}: ${width}px)` | |
| 133 | 134 | ); |
| 134 | 135 | list.addEventListener("change", setIsMatching2); |
| 135 | 136 | return [`${operator} ${name}`, list]; |
| 136 | 137 | } |
| @@ -214,6 +215,8 @@ | ||
| 214 | 215 | ">=": "min-width" |
| 215 | 216 | }; |
| 216 | 217 | listener_default(BREAKPOINTS, OPERATORS); |
| 217 | 218 | return __toCommonJS(index_exports); |
| 219 | +})(); | |
| 220 | +(window.wp ||= {}).viewport = wp.viewport; | |
| 218 | 221 | })(); |
| 219 | 222 | //# sourceMappingURL=index.js.map |