Skip to content

Commit a056d4c

Browse files
Update ide.js
1 parent 0698ff9 commit a056d4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/ide.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var layoutConfig = {
6666
}
6767
}, {
6868
type: "column",
69-
content: [configuration.getConfig().appOptions.showAIAssistant ? {
69+
content: [configuration.get("appOptions.showAIAssistant") ? {
7070
type: "component",
7171
height: 66,
7272
componentName: "ai",
@@ -575,7 +575,7 @@ document.addEventListener("DOMContentLoaded", async function () {
575575

576576
sourceEditor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter, run);
577577

578-
if (configuration.getConfig().appOptions.showAIAssistant) {
578+
if (configuration.get("appOptions.showAIAssistant")) {
579579
monaco.languages.registerInlineCompletionsProvider('*', {
580580
provideInlineCompletions: async (model, position) => {
581581
if (!puter.auth.isSignedIn() || !document.getElementById("judge0-inline-suggestions").checked) {

0 commit comments

Comments
 (0)