Skip to content

Commit

Permalink
Adding code-removable.js
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Jun 19, 2022
1 parent cd63bd6 commit 0fb3ccc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions js/core-removable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
Copyright 2019-2022 Michael Pozhidaev <[email protected]>
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
LUWRAIN is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

Luwrain.addHook("luwrain.linux.disk.added", (disk)=>{
Luwrain.message("Подключен " + disk.vendor + " " + disk.model, Luwrain.constants.MESSAGE_TYPE_ANNOUNCEMENT);
});

0 comments on commit 0fb3ccc

Please sign in to comment.