Skip to content

Commit

Permalink
add missing ace script for previous user shared code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc committed Aug 9, 2023
1 parent f5aa6ea commit c9a157f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export function getTabData() {
function setTabValues(samples: [string, string, string]) {
tabJs.session.setValue(samples[0]);
tabCSS.session.setValue(samples[1]);
tabHTML.session.setValue(samples[2]);
tabHTML.session.setValue(addMissingAceScript(samples[2]));

runSample();
}
Expand All @@ -264,7 +264,7 @@ function loadSample(path: string) {
return response.responseText;
});
let html = request(path + '/sample.html').then(function (response: XMLHttpRequest) {
return addMissingAceScript(response.responseText);
return response.responseText;
});

Promise.all([js, css, html]).then(
Expand Down

0 comments on commit c9a157f

Please sign in to comment.