Skip to content

Commit

Permalink
Open help file on install
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaidr committed Sep 28, 2013
1 parent d9468e6 commit a50d68b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ chrome.windows.onCreated.addListener(function () {
chrome.windows.onRemoved.addListener(function () {
sendMessage();
});
chrome.runtime.onInstalled.addListener(function () {
setText();
chrome.runtime.onInstalled.addListener(function () {
chrome.browserAction.setBadgeBackgroundColor({
color: [0, 114, 198, 255]
});
chrome.tabs.create({
url: '../html/help.html'
});
setText();
});
function sendMessage() {
var views = chrome.extension.getViews({
Expand Down

0 comments on commit a50d68b

Please sign in to comment.