import { isMobile } from "app/utils" export default function reviseSite (graph) { console.log(graph) if (!isMobile) { return graph } // graph.pages['/last-museum/home'].tiles = ( // graph.pages['/last-museum/home'].tiles // .filter(tile => tile.type !== 'text') // ) Object.keys(graph.pages).forEach(path => { const page = graph.pages[path] if (path.match("opoku")) { page.tiles.forEach(tile => { if (tile.type === 'image') { tile.settings.scale /= 2 } }) } }) return graph }