src/app/www/js/functions.js
/**
 * Stops the current script's execution through a call to the API STOP resource.
 */
Stops the current script's execution through a call to the API STOP resource.
Stops the current script ' s execution through a call to the API STOP resource .
function stopScript() {
    const form = API.createRequestForm({
        Magic: MAGIC,
    });
    API.call(API.Resource.STOP, form)
        .then(() => {
            toast.show("Stopped script execution!", Toast.Mode.SUCCESS);
        })
        .catch(() => {});
}
function stopScript ( ) { const form = API . createRequestForm ( { Magic : MAGIC , } ) ; API . call ( API . Resource . STOP , form ) . then ( ( ) => { toast . show ( "Stopped script execution!" , Toast . Mode . SUCCESS ) ; } ) . catch ( ( ) => { } ) ; }
Stops the current script's execution through a call to the API STOP resource.
Stops the current script ' s execution through a call to the API STOP resource .