From 9ff47421312053f79574f31dd08ac0baf7310f9a Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 14 Feb 2017 21:26:56 +0100 Subject: [PATCH] fixed FF compatibility cleanup manifest --- src/app.common/models/CalendarEvent.ts | 7 +++---- src/manifest.json | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/app.common/models/CalendarEvent.ts b/src/app.common/models/CalendarEvent.ts index 99703db..2b50a2e 100644 --- a/src/app.common/models/CalendarEvent.ts +++ b/src/app.common/models/CalendarEvent.ts @@ -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); } diff --git a/src/manifest.json b/src/manifest.json index 9253c27..ac42772 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -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", @@ -18,7 +17,6 @@ "permissions": [ "tabs", "storage", - "management", "notifications", "contextMenus", "clipboardWrite"