Skip to content

Commit

Permalink
chore(context-pad): improve getPad deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Apr 29, 2024
1 parent 6db1d13 commit 3487b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/features/context-pad/ContextPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ ContextPad.prototype._createHtml = function(target) {
* @return { { html: HTMLElement } }
*/
ContextPad.prototype.getPad = function(target) {
console.warn(new Error(
'getPad is deprecated and will be removed in future library versions'
console.warn(new Error(`ContextPad.getPad is deprecated and will be removed in future library versions;
query the DOM directly using \`canvas.getContainer().querySelector('.djs-context-pad');\``
));

let html;
Expand Down

0 comments on commit 3487b67

Please sign in to comment.