@todesktop/client-selected-text
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -24,3 +24,3 @@ /** | ||
interface Window { | ||
td: { | ||
todesktop: { | ||
selectedText: { | ||
@@ -27,0 +27,0 @@ getSelectedText: GetSelectedText; |
@@ -8,3 +8,3 @@ "use strict"; | ||
*/ | ||
const getSelectedText = () => window.td.selectedText.getSelectedText(); | ||
const getSelectedText = () => window.todesktop.selectedText.getSelectedText(); | ||
exports.getSelectedText = getSelectedText; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
const registerShortcut = (...args) => window.td.selectedText.registerShortcut(...args); | ||
const registerShortcut = (...args) => window.todesktop.selectedText.registerShortcut(...args); | ||
exports.registerShortcut = registerShortcut; | ||
@@ -24,3 +24,3 @@ /** | ||
*/ | ||
const unregisterShortcut = (...args) => window.td.selectedText.unregisterShortcut(...args); | ||
const unregisterShortcut = (...args) => window.todesktop.selectedText.unregisterShortcut(...args); | ||
exports.unregisterShortcut = unregisterShortcut; |
{ | ||
"name": "@todesktop/client-selected-text", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -24,3 +24,3 @@ /** | ||
interface Window { | ||
td: { | ||
todesktop: { | ||
selectedText: { | ||
@@ -27,0 +27,0 @@ getSelectedText: GetSelectedText; |
@@ -12,3 +12,3 @@ import type { | ||
export const getSelectedText: typeof _getSelectedText = () => | ||
window.td.selectedText.getSelectedText(); | ||
window.todesktop.selectedText.getSelectedText(); | ||
@@ -22,3 +22,3 @@ /** | ||
export const registerShortcut: typeof _registerShortcut = (...args) => | ||
window.td.selectedText.registerShortcut(...args); | ||
window.todesktop.selectedText.registerShortcut(...args); | ||
@@ -30,2 +30,2 @@ /** | ||
export const unregisterShortcut: typeof _unregisterShortcut = (...args) => | ||
window.td.selectedText.unregisterShortcut(...args); | ||
window.todesktop.selectedText.unregisterShortcut(...args); |
6845