Skip to content

Commit 70a2355

Browse files
committed
better example
1 parent 6e05b55 commit 70a2355

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

example-ls/index.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
import Debug from '../src/browser/index.js'
2-
const debug = Debug('abc:*')
2+
const debug = Debug('abc:def')
3+
4+
// this corresponds to setting localStorage in index.html
5+
const debug2 = Debug('abc:123')
6+
7+
const debug3 = Debug('abc:456')
38

49
debug('hello world')
10+
11+
debug2('hello two...')
12+
13+
debug3('456...')
14+
15+
localStorage.setItem('DEBUG', 'abc:*')
16+
17+
debug3('456 after setting localStorage...')
18+
19+
localStorage.setItem('DEBUG', '')

0 commit comments

Comments
 (0)