mirror of https://github.com/docker/docs.git
Merge pull request #1606 from docker/remove-localstorage
Remove localstorage
This commit is contained in:
commit
fb0445af7c
|
|
@ -32,6 +32,7 @@ var ContainerHome = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
handleErrorClick: function () {
|
handleErrorClick: function () {
|
||||||
|
// Display wiki for proxy: https://github.com/docker/kitematic/wiki/Common-Proxy-Issues-&-Fixes
|
||||||
shell.openExternal('https://github.com/kitematic/kitematic/issues/new');
|
shell.openExternal('https://github.com/kitematic/kitematic/issues/new');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,6 @@ export default {
|
||||||
|
|
||||||
async useVbox () {
|
async useVbox () {
|
||||||
metrics.track('Retried Setup with VBox');
|
metrics.track('Retried Setup with VBox');
|
||||||
localStorage.setItem('settings.useNative', false);
|
|
||||||
router.get().transitionTo('loading');
|
router.get().transitionTo('loading');
|
||||||
setupServerActions.error({ error: { message: null }});
|
setupServerActions.error({ error: { message: null }});
|
||||||
_retryPromise.resolve();
|
_retryPromise.resolve();
|
||||||
|
|
@ -70,7 +69,6 @@ export default {
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
if (util.isNative()) {
|
if (util.isNative()) {
|
||||||
localStorage.setItem('setting.useNative', true);
|
|
||||||
let stats = fs.statSync('/var/run/docker.sock');
|
let stats = fs.statSync('/var/run/docker.sock');
|
||||||
if (stats.isSocket()) {
|
if (stats.isSocket()) {
|
||||||
await this.nativeSetup();
|
await this.nativeSetup();
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@ module.exports = {
|
||||||
return process.platform === 'linux';
|
return process.platform === 'linux';
|
||||||
},
|
},
|
||||||
isNative: function () {
|
isNative: function () {
|
||||||
// let native = JSON.parse(localStorage.getItem('settings.useNative'));
|
|
||||||
let native = null;
|
let native = null;
|
||||||
if (native === null) {
|
if (native === null) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue