Skip to content

Commit

Permalink
fix auto-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre committed Dec 4, 2024
1 parent ea8b939 commit 21a18df
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ function(el) {
}
simplyApp.commands.codeMirrorInit();
simplyApp.commands.autoRunTests();
simplyApp.commands.autoRunPreviews();
}
5 changes: 0 additions & 5 deletions www/api/data/pages/component/routes/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,5 @@ function(params) {
editor.pageData.parts = parts;
editor.pageData.count = count;
editor.pageData.page = "Edit component";
})
.then(function() {
setTimeout(function() { // FIXME: Wait for the CSS to be available;
simplyApp.commands.autoRunPreviews();
}, 1000);
});
}
5 changes: 0 additions & 5 deletions www/api/data/pages/page/routes/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,5 @@ function(params) {
editor.pageData.parts = parts;
editor.pageData.count = count;
editor.pageData.page = "Edit page";
})
.then(function() {
setTimeout(function() { // FIXME: Wait for the CSS to be available;
simplyApp.commands.autoRunPreviews();
}, 1000);
});
}

0 comments on commit 21a18df

Please sign in to comment.