Skip to content

Commit

Permalink
Merge pull request #123 from Succubyss/patch-1
Browse files Browse the repository at this point in the history
Writing-Extensions.md: script.js relative path fix
  • Loading branch information
Cohee1207 authored Jan 21, 2025
2 parents 47b62d8 + a2307ca commit cc82bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions For_Contributors/Writing-Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Unless you're building a bundled extension, you can import variables and functio
For example, this code snippet will generate a reply from the currently selected API in the background:

```js
import { generateQuietPrompt } from "../../../script.js";
import { generateQuietPrompt } from "../../../../script.js";

async function handleMessage(data) {
const text = data.message;
Expand Down Expand Up @@ -203,7 +203,7 @@ All registered commands can be used in [STscript](/For_Contributors/st-script.md
Use eventSource.on() to listen for events:
```js
import { eventSource, event_types } from "../../../script.js";
import { eventSource, event_types } from "../../../../script.js";

eventSource.on(event_types.MESSAGE_RECEIVED, handleIncomingMessage);

Expand Down

0 comments on commit cc82bdb

Please sign in to comment.