aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/bg_utils.coffee
AgeCommit message (Collapse)Author
2017-10-19(FF android) Guard against undefined chrome.windowsmrmr1993
2016-10-23Move SearchEngines to bg-utils.coffee.Stephen Blott
`SearchEngines` was previously in `utils.coffee`, which means it was loaded in *every* content frame. This is unnecessary, since it is only used on the background page. So this PR moves it there. Also: - Simplify some unnecessarily complex logic in `vomnibar.coffee`. - Re-use `Utils.parseLines()` to parse the custom search engine configuation text.
2016-10-23Better line parsing (simplified).Stephen Blott
2016-10-17Better line parsing.Stephen Blott
1. Explicitly remove comments. 2. A trailing backslash means the current line continues on the next line. E.g. a \ b \ c is a single line `a b c`. This helps alleviate the fact that configuration lines can be very long, whereas the *Custom key mappings* input is quite narrow. TODO: We should use the same line parser in the custom-search-engines input.
2016-03-17Logging; auto scroll to end.Stephen Blott
2016-03-17Logging; only show the time...Stephen Blott
... we know what day it is!
2016-03-17Logging; add auto-lauch option.Stephen Blott
2016-03-17Logging; move logMessage to BgUtils."Stephen Blott
2016-02-20Tweak #2007.Stephen Blott
2016-02-21use chrome.windows.onFocusChanged to listen window switchinggdh1995
This fix the problem that `chrome.tabs.onActivated` won't be triggered when we switch Chrome windows.
2016-02-10BgUtils; two fixes...Stephen Blott
- handle case where there's only one tab - also focus the selected tab's window
2016-02-09BgUtils; implement visitPreviousTab.Stephen Blott
Implements visitPreviousTab (as discussed in #1955).
2016-02-09BgUtils; move tabRecency to bg_tiles.coffee.Stephen Blott
Certain background-page utilities are actually shared, and are therefore best placed in place that reflects that. Here, tabRecency is moved to the new gb_utils.coffee in preparation for implementing a go-to-previous-tab command. In particular, it is no longer appropriate that tabRecency be embedded within the completion code. logMessage() from main.coffee is also a candidate for moving to bg_utils.coffee.