Skip to content

Commit

Permalink
remove codepen console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
gapmiss committed Mar 11, 2024
1 parent 3d16645 commit c5cffea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ export default class LivecodesPlugin extends Plugin {
await requestUrl(cpUrl).then(
async (f) => {
let htmlContent = f.text;
console.log('htmlContent');
console.log(htmlContent);
// console.log('htmlContent');
// console.log(htmlContent);
let cnf:Partial<config> = {title: '', markup:{content:'',language:''},style:{content:'',language:''},script:{content:'',language:''}};
try {
// https://cheerio.js.org/docs/basics/loading
Expand All @@ -178,11 +178,11 @@ export default class LivecodesPlugin extends Plugin {
return;
}
let penJson = JSON.parse(content);
console.log('penJson');
console.log(penJson);
// console.log('penJson');
// console.log(penJson);
let itemJson = JSON.parse(penJson.__item);
console.log('itemJson');
console.log(itemJson);
// console.log('itemJson');
// console.log(itemJson);
await saveAsModal(this.app, "New livecodes playground", "Save as:", (itemJson.title !== '') ? itemJson.title : 'Untitled', "e.g. New Playground", false)
.then(async (fName:string) => {
if (fName?.length === 0) {
Expand Down

0 comments on commit c5cffea

Please sign in to comment.