File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default class MyPlugin extends Plugin {
1717 await this . loadSettings ( ) ;
1818
1919 // This creates an icon in the left ribbon.
20- const ribbonIconEl = this . addRibbonIcon ( 'dice' , 'Sample Plugin' , ( evt : MouseEvent ) => {
20+ const ribbonIconEl = this . addRibbonIcon ( 'dice' , 'Sample Plugin' , ( _evt : MouseEvent ) => {
2121 // Called when the user clicks the icon.
2222 new Notice ( 'This is a notice!' ) ;
2323 } ) ;
@@ -40,7 +40,7 @@ export default class MyPlugin extends Plugin {
4040 this . addCommand ( {
4141 id : 'sample-editor-command' ,
4242 name : 'Sample editor command' ,
43- editorCallback : ( editor : Editor , view : MarkdownView ) => {
43+ editorCallback : ( editor : Editor , _view : MarkdownView ) => {
4444 console . log ( editor . getSelection ( ) ) ;
4545 editor . replaceSelection ( 'Sample Editor Command' ) ;
4646 }
You can’t perform that action at this time.
0 commit comments