Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
K0R0L committed Aug 12, 2024
1 parent 1fff4d4 commit 5b0110a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdkjs-plugins/v1/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,22 +272,22 @@
{
window.Asc.plugin["event_" + id] = action.bind(window.Asc.plugin);

_sendMessageToParent({
_sendMessageToParent(JSON.stringify({
"guid" : window.Asc.plugin.guid,
"type" : "attachEvent",
"data" : id
});
"name" : id
}));
};
window.Asc.plugin.detachEditorEvent = function(id)
{
if (window.Asc.plugin["event_" + id])
delete window.Asc.plugin["event_" + id];

_sendMessageToParent({
_sendMessageToParent(JSON.stringify({
"guid" : window.Asc.plugin.guid,
"type" : "detachEvent",
"data" : id
});
"name" : id
}));
};

window.onunload = function() {
Expand Down

0 comments on commit 5b0110a

Please sign in to comment.