Fix: Highlighter was not remembered after IITC restart
This commit is contained in:
parent
bf229f7f05
commit
def3dd698c
@ -6,6 +6,12 @@ window._highlighters = null;
|
|||||||
window._current_highlighter = localStorage.portal_highlighter;
|
window._current_highlighter = localStorage.portal_highlighter;
|
||||||
window._no_highlighter = 'No Highlights';
|
window._no_highlighter = 'No Highlights';
|
||||||
|
|
||||||
|
if(window._current_highlighter !== undefined) {
|
||||||
|
if (typeof android !== 'undefined' && android && android.setActiveHighlighter)
|
||||||
|
android.setActiveHighlighter(window._current_highlighter);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
window.addPortalHighlighter = function(name, callback) {
|
window.addPortalHighlighter = function(name, callback) {
|
||||||
if(_highlighters === null) {
|
if(_highlighters === null) {
|
||||||
_highlighters = {};
|
_highlighters = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user