MCPcopy Index your code
hub / github.com/MALSync/MALSync / floatClick

Function floatClick

src/floatbutton/extension.ts:1–11  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

1export 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
13export function openMinimal(callback) {
14 const width = getPixel(api.settings.get('miniMalWidth'), window.screen.width);

Callers 1

initFloatButtonFunction · 0.70

Calls 3

openMinimalFunction · 0.85
openCorrectionUiMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected