0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 06:32:39 +00:00

Starting to set up the snippets

This commit is contained in:
Scott Tolksdorf
2017-02-24 00:49:21 -05:00
parent 540c00cb0c
commit 0d0ce101f3
11 changed files with 443 additions and 29 deletions

View File

@@ -1,12 +0,0 @@
//TODO: Depricate
module.exports = function(shareId){
return function(event){
event = event || window.event;
if((event.ctrlKey || event.metaKey) && event.keyCode == 80){
var win = window.open(`/homebrew/print/${shareId}?dialog=true`, '_blank');
win.focus();
event.preventDefault();
}
};
};