summaryrefslogtreecommitdiffstats
path: root/extensions/vertical-workspaces/iconGrid.js
blob: 2b93efd98749d5e7a85133a9f801cae3df97ce9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * Vertical Workspaces
 * iconGrid.js
 * 
 * @author     GdH <G-dH@github.com>
 * @copyright  2022 - 2023
 * @license    GPL-3.0
 *
 */

'use strict';

// ------------------ IconGrid - override -------------------------------------------------------------------------

// workaround - silence page -2 error on gnome 43 during cleaning appgrid

var IconGrid = {
    getItemsAtPage: function(page) {
        if (page < 0 || page > this.nPages)
            return [];
            //throw new Error(`Page ${page} does not exist at IconGrid`);

        const layoutManager = this.layout_manager;
        return layoutManager.getItemsAtPage(page);
    }
}