(page)
| 1 | export function floatClick(page) { |
| 2 | if (api.settings.get('floatButtonCorrection')) { |
| 3 | con.log('Open correction'); |
| 4 | page.openCorrectionUi(); |
| 5 | } else { |
| 6 | con.log('Open miniMAL'); |
| 7 | openMinimal(function (response) { |
| 8 | con.log('Opened'); |
| 9 | }); |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | export function openMinimal(callback) { |
| 14 | const width = getPixel(api.settings.get('miniMalWidth'), window.screen.width); |
no test coverage detected