Skip to content

Commit 689844b

Browse files
author
Sebi Nemeth
committed
log on-off
1 parent 258daf8 commit 689844b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ class LiveTranslatorManager {
181181
if (this._options.persist) {
182182
localStorage.setItem('live-translator-enabled', JSON.stringify(this._enabled));
183183
}
184+
console.log(`%c Live Translator ${this._enabled ? 'ON' : 'OFF'} `, 'background: #222; color: #bada55');
184185
}
185186
render() {
186187
const badges = document.querySelectorAll('.live-translator-badge');

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ class LiveTranslatorManager {
211211
if (this._options.persist) {
212212
localStorage.setItem('live-translator-enabled', JSON.stringify(this._enabled))
213213
}
214+
console.log(`%c Live Translator ${this._enabled ? 'ON' : 'OFF'} `, 'background: #222; color: #bada55');
214215
}
215216

216217
render () {

0 commit comments

Comments
 (0)