diff --git a/docs/_docs/Develop/script-js.md b/docs/_docs/Develop/script-js.md index 5a31c3d063..b19be1ddfd 100644 --- a/docs/_docs/Develop/script-js.md +++ b/docs/_docs/Develop/script-js.md @@ -264,7 +264,7 @@ If the QuickScript is not sufficient for you, you can still write a custom scrip The frame for a custom script looks like this: ```javascript -include("engines.wine.engines.wine"); +const Wine = include("engines.wine.engine.object"); const WineShortcut = include("engines.wine.shortcuts.wine"); var application = "application name" diff --git a/docs/_docs/Develop/verbs.md b/docs/_docs/Develop/verbs.md index 768b395295..44ead83471 100644 --- a/docs/_docs/Develop/verbs.md +++ b/docs/_docs/Develop/verbs.md @@ -15,7 +15,7 @@ Probably, the verb you want to add has already been implemented somewhere else. Create a new folder in `Engines/Wine/Verbs` and add a `script.js`. The `script.js` must follow this template: ```javascript -include(["engines", "wine", "engine", "object"]); +const Wine = include("engines.wine.engine.object"); /** * Verb to install verb @@ -30,7 +30,7 @@ Wine.prototype.verb = function() { /** * Verb to install verb */ -class VerbVerb { +module.default = class VerbVerb { constructor() { // do some optional initialisation work }