Skip to content

Commit 6249cc1

Browse files
committed
Add strict mode to functions
1 parent ac81a97 commit 6249cc1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

led.html

+4
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ <h3>Logg</h3>
202202
// Funksjon for å skru LED på
203203

204204
function ledOn() {
205+
'use strict';
206+
205207
if(myCharacteristic) {
206208
log('> Skrur LED på...');
207209
let ledValue = new Uint8Array([1]);
@@ -215,6 +217,8 @@ <h3>Logg</h3>
215217
// Funksjon for å skru LED av
216218

217219
function ledOff() {
220+
'use strict';
221+
218222

219223
if(myCharacteristic) {
220224
log('> Skrur LED av...');

samples.html

+4
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ <h3>Logg</h3>
202202
// Funksjon for å skru LED på
203203

204204
function ledOn() {
205+
'use strict';
206+
205207
if(myCharacteristic) {
206208
log('> Skrur LED på...');
207209
let ledValue = new Uint8Array([1]);
@@ -215,6 +217,8 @@ <h3>Logg</h3>
215217
// Funksjon for å skru LED av
216218

217219
function ledOff() {
220+
'use strict';
221+
218222

219223
if(myCharacteristic) {
220224
log('> Skrur LED av...');

0 commit comments

Comments
 (0)