You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently working in AnnyangJS. But when i link the cdn of annyang and used this syntax,
`<script>
if (annyang) {
// Let's define a command.
var commands = {
'hello': function() { alert('Hello world!'); }
};
// Add our commands to annyang
annyang.addCommands(commands);
// Start listening.
annyang.start();
}}
`
It produces an error Uncaught ReferenceError: annyang is not defined,
But i was tried in your website demo, it works.
The text was updated successfully, but these errors were encountered:
Hello @einnar82 ,
I guess you have copied the code example from the demo. Have a look at the "src" attribute of the annyang script. It is <script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script>
You have to change it to <script src="https://cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script>
Good day,
I currently working in AnnyangJS. But when i link the cdn of annyang and used this syntax,
`<script>
if (annyang) {
// Let's define a command.
var commands = {
'hello': function() { alert('Hello world!'); }
};
// Add our commands to annyang
annyang.addCommands(commands);
// Start listening.
annyang.start();
}}
`
It produces an error
Uncaught ReferenceError: annyang is not defined
,But i was tried in your website demo, it works.
The text was updated successfully, but these errors were encountered: