src/plugins/local-storage/index.js
Function default
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function(system) {
// setTimeout runs on the next tick
setTimeout(() => {
if(localStorage.getItem(CONTENT_KEY)) {
system.specActions.updateSpec(localStorage.getItem(CONTENT_KEY), "local-storage")