Skip to content

Commit 527d2ea

Browse files
committed
fix(html): trimming html before storing, closes #10
1 parent cced1b0 commit 527d2ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/bottle-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
/*
5050
This is ServiceWorker code
5151
*/
52-
/* global self, Response, Promise, location, fetch, caches */
52+
/* global self, Response, Promise, location, fetch */
5353
var myName = 'bottle-service'
5454
console.log(myName, 'startup')
5555

dist/bottle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
var el = document.getElementById(id)
8181
la(el, 'could not find element with id', id)
82-
var html = el.innerHTML
82+
var html = el.innerHTML.trim()
8383
send({
8484
cmd: 'refill',
8585
html: html,

src/bottle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
var el = document.getElementById(id)
8181
la(el, 'could not find element with id', id)
82-
var html = el.innerHTML
82+
var html = el.innerHTML.trim()
8383
send({
8484
cmd: 'refill',
8585
html: html,

0 commit comments

Comments
 (0)