X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=themes%2Ftriple-pane%2Ftheme.js;h=2fddab03b551831d1e9840132a58c8b6c6cc38da;hb=f52df691c3c8797a6a97914167c6b4873a273a28;hp=0880553066e117fc88c616ce57bfcdbd5484b355;hpb=622586166aaa5b87470afa49deeeed9aa5a565d4;p=tt-rss.git diff --git a/themes/triple-pane/theme.js b/themes/triple-pane/theme.js index 08805530..2fddab03 100644 --- a/themes/triple-pane/theme.js +++ b/themes/triple-pane/theme.js @@ -1,14 +1,18 @@ function themeBeforeLayout() { - $("headlines-wrap-inner").setAttribute("design", 'sidebar'); - $("content-insert").setAttribute("region", "trailing"); - $("content-insert").setStyle({ - width: '50%', - height: 'auto'}); + if ($("content-insert")) { + $("headlines-wrap-inner").setAttribute("design", 'sidebar'); + $("content-insert").setAttribute("region", "trailing"); + $("content-insert").setStyle({ + width: '50%', + height: 'auto'}); + } } function themeAfterLayout() { - $("headlines-toolbar").setStyle({ - 'border-right-width': '1px', - 'border-color': '#88b0f0', - }); + if ($("content-insert")) { + $("headlines-toolbar").setStyle({ + 'border-right-width': '1px', + 'border-color': '#88b0f0', + }); + } }