summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-06-19 10:24:57 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-06-19 12:29:47 +0200
commit81ac96498691f899ca521aa124d5e8425586819b (patch)
treea69c5451da3388ba8ea75f70dde545d5ea50fd78 /static
parent5feafc1e2089a715fa94f206204cec73d58c189a (diff)
Consistently 'use strict' for JS code
Change-Id: I6f6e06ad32ffa87242f5a0f41c176149b754e2ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169187 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'static')
-rw-r--r--static/emscripten/environment.js2
-rw-r--r--static/emscripten/soffice_args.js2
-rw-r--r--static/emscripten/uno.js2
3 files changed, 6 insertions, 0 deletions
diff --git a/static/emscripten/environment.js b/static/emscripten/environment.js
index 7d04fd76b0f2..5ad1f41363ed 100644
--- a/static/emscripten/environment.js
+++ b/static/emscripten/environment.js
@@ -1,3 +1,5 @@
+'use strict';
+
if (!('preRun' in Module)) Module['preRun'] = [];
Module.preRun.push(function() {
ENV.SAL_LOG = "+WARN"
diff --git a/static/emscripten/soffice_args.js b/static/emscripten/soffice_args.js
index 7ecf7e8988e8..6881741bdf0b 100644
--- a/static/emscripten/soffice_args.js
+++ b/static/emscripten/soffice_args.js
@@ -1,3 +1,5 @@
+'use strict';
+
Module['arguments'] = [
'--norestore',
'--nologo',
diff --git a/static/emscripten/uno.js b/static/emscripten/uno.js
index 2398dee76da7..cb7276d19489 100644
--- a/static/emscripten/uno.js
+++ b/static/emscripten/uno.js
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+'use strict';
+
Module.initUno = function() {
if (Module.uno === undefined) {
Module.uno = init_unoembind_uno(Module);