Skip to content

Commit

Permalink
fix for thunderbird 65
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelroecker committed Jan 20, 2019
1 parent 6c0a558 commit 69f2fb5
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
doc
2 changes: 0 additions & 2 deletions doc/todo.md

This file was deleted.

2 changes: 2 additions & 0 deletions other/.gitignore
@@ -0,0 +1,2 @@
signalement.txt

Binary file modified release/opengooglecalendar.xpi
Binary file not shown.
8 changes: 8 additions & 0 deletions src/background.js
@@ -0,0 +1,8 @@
function openGoogleCalendar() {
browser.tabs.create({
url: "https://calendar.google.com/calendar/r"
});
}

browser.browserAction.onClicked.addListener(openGoogleCalendar);

3 changes: 3 additions & 0 deletions src/build.sh
Expand Up @@ -92,6 +92,9 @@ for ROOT_FILE in $ROOT_FILES install.rdf chrome.manifest; do
fi
done

# Copy icons webextension
cp -vr icons $TMP_DIR

cd $TMP_DIR

if [ -f "chrome.manifest" ]; then
Expand Down
2 changes: 1 addition & 1 deletion src/config_build.sh
Expand Up @@ -3,7 +3,7 @@
APP_NAME=opengooglecalendar
CHROME_PROVIDERS="content locale skin"
CLEAN_UP=1
ROOT_FILES="readme.txt"
ROOT_FILES="readme.txt manifest.json background.js"
ROOT_DIRS="defaults"
BEFORE_BUILD=
AFTER_BUILD="mv $APP_NAME.xpi ../release/"
Binary file added src/icons/128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions src/manifest.json
@@ -0,0 +1,33 @@
{
"browser_specific_settings": {
"gecko": {
"strict_min_version": "65.0b2"
}
},
"background": {
"scripts": ["background.js"]
},
"browser_action": {
"browser_style": true,
"default_title": "Open Google Calendar",
"default_icon": {
"16": "icons/16.png",
"32": "icons/32.png",
"64": "icons/64.png",
"128": "icons/128.png"
}
},
"developer": {
"name": "Emmanuel ROECKER et Rym BOUCHAGOUR",
"url": "https://www.rymetemmanuel.fr/"
},
"description": "Open up Google Calendar in a new tab",
"manifest_version": 2,
"name": "Open Google Calendar",
"permissions": [
"tabs",
"webNavigation",
"cookies"
],
"version": "1.1"
}

0 comments on commit 69f2fb5

Please sign in to comment.