'use strict'

/**
 * Module dependencies
 */
const home = require('user-home')
require('shelljs/global')

module.exports = function (version) {
  try {
    const dir = `${home}/.nwjs/${version}`
    rm('-r', dir)
  } catch (e) {
    console.log(e.stack)
  }
}

@@ -72,16 +72,51 @@
 -home')%0A
+const config = require('./config')%0A
 require(
@@ -180,16 +180,48 @@
   try %7B%0A
+    config.set('current', null)%0A
     cons

update config after remove nwjs