Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
leomcelroy committed Oct 21, 2022
1 parent b233032 commit 17785b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
node_modules
package-lock.json
.DS_Store

.DS_Store
6 changes: 3 additions & 3 deletions js/urlToCode.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { dispatch } from "./dispatch.js";

export async function urlToCode(file_url, state) {
const file = await fetch(file_url, {mode: 'cors'});
const file = await fetch(file_url, { mode: 'cors' });
const txt = await file.text();

state.codemirror.view.dispatch({
changes: {from: 0, insert: txt}
state.codemirror.view.dispatch({
changes: { from: 0, insert: txt }
});

// fold imports
Expand Down

0 comments on commit 17785b0

Please sign in to comment.