Changeset View
Changeset View
Standalone View
Standalone View
extension/extension-kdeconnect.js
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 42 | addCallback("kdeconnect", "deviceAdded", function(message) { | |||
---|---|---|---|---|---|
46 | 46 | | |||
47 | let menuEntryTitle = chrome.i18n.getMessage("kdeconnect_open_device", name); | 47 | let menuEntryTitle = chrome.i18n.getMessage("kdeconnect_open_device", name); | ||
48 | let menuId = kdeConnectMenuIdPrefix + deviceId; | 48 | let menuId = kdeConnectMenuIdPrefix + deviceId; | ||
49 | 49 | | |||
50 | let props = { | 50 | let props = { | ||
51 | id: menuId, | 51 | id: menuId, | ||
52 | contexts: ["link", "page", "image", "audio", "video"], | 52 | contexts: ["link", "page", "image", "audio", "video"], | ||
53 | title: menuEntryTitle, | 53 | title: menuEntryTitle, | ||
54 | targetUrlPatterns: [ | ||||
55 | "http://*/*", "https://*/*" | ||||
56 | ] | ||||
54 | }; | 57 | }; | ||
55 | 58 | | |||
56 | if (IS_FIREFOX) { | 59 | if (IS_FIREFOX) { | ||
57 | let iconName = ""; | 60 | let iconName = ""; | ||
58 | switch (type) { | 61 | switch (type) { | ||
59 | case "smartphone": | 62 | case "smartphone": | ||
60 | case "phone": | 63 | case "phone": | ||
61 | iconName = "smartphone-symbolic"; | 64 | iconName = "smartphone-symbolic"; | ||
Show All 37 Lines |