old_contents: 'use strict';
  
  /*
   * lifecycle instance module:
   *   Updates plugin periodically and communicates with the general UI.
   */
  
  // Library for communicating with Sia-UI
  const IPCRenderer = require('electron').ipcRenderer;
  // Host settings manager
  const Host = require('./host.js');
  // Siad wrapper/manager
  const Siad = require('sia.js');
  
  // Tracks if the view is shown
  var updating;
  const refreshRate = 15000;
  
  // Notification shortcut 
  function notify(msg, type) {
  	IPCRenderer.sendToHost('notification', msg, type);
  }
  
  // Get host status regularly
  function update() {
  	Host.update();
  	updating = setTimeout(update, refreshRate);
  }
  
  // Called upon transitioning away from this view
  function stop() {
  	clearTimeout(updating);
  }
  
  // Ask UI to show tooltip bubble above element
  function tooltip(message, element) {
  	var rect = element.getBoundingClientRect();
  	IPCRenderer.sendToHost('tooltip', message, {
  		top: rect.top,
  		bottom: rect.bottom,
  		left: rect.left,
  		right: rect.right,
  		height: rect.height,
  		width: rect.width,
  		length: rect.length,
  	});
  }
  
  // Requiring this file gives an object with the following functions
  module.exports = {
  	update: update,
  	stop: stop,
  	notify: notify,
  	tooltip: tooltip,
  };
  
new_contents: 'use strict';
  
  /*
   * lifecycle instance module:
   *   Updates plugin periodically and communicates with the general UI.
   */
  
  // Library for communicating with Sia-UI
  const IPCRenderer = require('electron').ipcRenderer;
  // Host settings manager
  const Host = require('./host.js');
  
  // Tracks if the view is shown
  var updating;
  const refreshRate = 15000;
  
  // Notification shortcut 
  function notify(msg, type) {
  	IPCRenderer.sendToHost('notification', msg, type);
  }
  
  // Get host status regularly
  function update() {
  	Host.update();
  	updating = setTimeout(update, refreshRate);
  }
  
  // Called upon transitioning away from this view
  function stop() {
  	clearTimeout(updating);
  }
  
  // Ask UI to show tooltip bubble above element
  function tooltip(message, element) {
  	var rect = element.getBoundingClientRect();
  	IPCRenderer.sendToHost('tooltip', message, {
  		top: rect.top,
  		bottom: rect.bottom,
  		left: rect.left,
  		right: rect.right,
  		height: rect.height,
  		width: rect.width,
  		length: rect.length,
  	});
  }
  
  // Requiring this file gives an object with the following functions
  module.exports = {
  	update: update,
  	stop: stop,
  	notify: notify,
  	tooltip: tooltip,
  };
  
subject: remove unused Siad in Hosting plugin