(opt_win)
| 30 | * @return {!ModeDef} |
| 31 | */ |
| 32 | export function getMode(opt_win) { |
| 33 | const win = opt_win || self; |
| 34 | if (win.__AMP_MODE) { |
| 35 | return win.__AMP_MODE; |
| 36 | } |
| 37 | return (win.__AMP_MODE = getMode_(win)); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Provides info about the current app. |
no test coverage detected