Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Apr 10, 2024
1 parent 05d52ee commit 32b774c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@ async function transform(options) {

let monacoEditor;

function createEditor(options) {
async function createEditor(options) {
// TODO: Figure out how to resolve this error.
//
// codicon.ttf:1
// Failed to load resource: the server responded with a status of 500 (Internal Server Error)

// Ask for permission to read the clipboard.
const permissionStatus = await navigator.permissions
.query({ name: "clipboard-read" });
if (permissionStatus.state === "prompt") {
// await navigator.clipboard.readText();
}

monacoEditor = monaco.editor.create(
options.target,
{
Expand Down

0 comments on commit 32b774c

Please sign in to comment.