Skip to content

Commit

Permalink
re-add workaround for issue #7 as it helps a lot here, even though it…
Browse files Browse the repository at this point in the history
…'s not a 100% fix
  • Loading branch information
danielnaber committed Jul 15, 2015
1 parent dad33a0 commit 30e6b08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ function changeDictionary(language)

// focus into textarea after page load sometimes doesn't set the spell dictionary
// properly (even though detection works), this helps but doesn't fix it completely (issue #7):

spellchecker.dictionary = dictionary;
var { setTimeout } = require("sdk/timers");
setTimeout(function() {spellchecker.dictionary = dictionary;}, 10);

const feedbackData = {
language: null,
Expand Down

0 comments on commit 30e6b08

Please sign in to comment.