Skip to content

Commit

Permalink
fixed FF compatibility
Browse files Browse the repository at this point in the history
cleanup manifest
  • Loading branch information
Le0Michine committed Feb 14, 2017
1 parent 615e2d1 commit 9ff4742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/app.common/models/CalendarEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ export class CalendarEvent {

static copyToClipboard(timeSpan: TimeSpanInfo, location: string, timelines: TimeZoneInfo[]) {
const {startTime, endTime} = timeSpanToTime(timeSpan);
const sceduleData = getEventDescription(timeSpan, timelines);
const scheduleData = getEventDescription(timeSpan, timelines);

let copyFrom = document.createElement("textarea");
copyFrom.textContent = sceduleData;
copyFrom.textContent = scheduleData;
document.body.appendChild(copyFrom);
copyFrom.focus();
document.execCommand('SelectAll');
document.execCommand('Copy');
copyFrom.select();
document.execCommand("copy");
document.body.removeChild(copyFrom);
}
Expand Down
4 changes: 1 addition & 3 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"manifest_version": 2,
"name": "Worldtime",
"description": "All time zones in one click",
"version": "0.1.288",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"version": "1.0.1",
"options_page": "options.html",
"browser_action": {
"default_icon": "icons/icon_19.png",
Expand All @@ -18,7 +17,6 @@
"permissions": [
"tabs",
"storage",
"management",
"notifications",
"contextMenus",
"clipboardWrite"
Expand Down

0 comments on commit 9ff4742

Please sign in to comment.