Traducere "main.js" în spaniolă
Nu am putut găsi această intrare. Se afișează rezultate aproximative. Verificați ortografia sau propuneți adăugarea acestui termen în dicționar.
Let's start writing some code for our add-on in the main.js file.
Vamos a empezar a escribir código para nuestro complemento en el archivo main.js.
First, go to your test site and create a new file called main.js.
Primero, ve a tu sitio de pruebas y crea un nuevo archivo llamado main.js.
You can continue in this way to watch it request smiley.svg, main.js, and finally the manifest.json.
Puedes continuar de esta manera para ver cómo solicita smiley.svg, main.js y, finalmente, el manifest.json.
Now add the following code to the main.js file
Ahora añade el siguiente código al archivo main.js
At the top of main.js, replace the code with the following
Al inicio de main.js, reemplaza el código con lo siguiente
Then, within the new scripts folder you just created, create a new file called main.js.
Luego, dentro de la nueva carpeta de scripts que acabas de crear, crea un nuevo archivo llamado main.js.
main.js: the main add-on code, that creates the button and panel
main.js: el código principal del add-on, que crea el botón y el panel
In the main.js file, create a numbers filter and a minutes filter, which will be globally accessible.
En el archivo main.js, cree un filtro de números y un filtro de minutos, que será accesible a nivel mundial.
Now, open the main.js file, delete the original content, and add the following
Ahora, abra el archivo main.js, borrar el contenido original y agregar lo siguiente
Suppose that you set a breakpoint in main.js that's triggered when the first number is changed
Supón que estableces un punto de interrupción en main.js que se activa cuando se cambia el primer número
The push message handler could be in your index.html file or in your main.js script, or even in a specific push-message.html file that contains only the message handler.
El controlador de mensajes push puede encontrarse en su archivo index.html o en su script main.js, o incluso en un archivo específico push-message.html que contiene solamente el controlador de mensajes.
The only other thing that has to change is the fact that you are passing your module into the module loader (notice the require instead of the define at the top of main.js).
La única otra cosa que tiene que cambiar es el hecho de que estás pasando tu módulo en el cargador de módulos (nota el require) en lugar del define al principio de main.js).
Fix: rewrote main.js master-skin dependencies inclusion to make sure everything gets loaded before running the script
Corrección: re-escribir la inclusión de las dependencias main.js máster-skin para asegurar que todo se carga antes de ejecutar el script