       item: v,
       icon: opts.icon || 'graph',
       title: opts.title || 'HTMLPane'
-      })
+    })
 
-    pane.ensureVisible({split: 'right'})
+    pane.ensureVisible({
+      split: opts.split || 'right'
+    })

{views} = require '../ui'

{webview} = views.tags

module.exports =
  activate: ->

    @pane.show v
    v.addEventListener('console-message', (e) => console.log(e.message))

  newpane: (id, url, opts={}) ->
    v = views.render webview
      class: 'blinkjl',
      disablewebsecurity: true,
