Update content type builder storeData.js file for adapting with login

This commit is contained in:
cyril lopez 2017-11-14 13:27:25 +01:00
parent c3ee5575c9
commit d9e3d80a22
3 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,10 @@ const stringify = JSON.stringify;
export const storeData = {
clearAppStorage() {
if (localStorage) {
return localStorage.clear();
localStorage.removeItem(CONTENT_TYPE);
localStorage.removeItem(IS_MODEL_TEMPORARY);
localStorage.removeItem(MENU);
return localStorage.removeItem(MODEL);
}
},

View File

@ -30,6 +30,7 @@ module.exports = function() {
try {
const strapi = function () {
try {
console.log(path.resolve(process.cwd(), 'node_modules', 'strapi'));
return require(path.resolve(process.cwd(), 'node_modules', 'strapi'));
} catch (e) {
return require('strapi');