0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 09:12:45 +00:00

Inital pass at getting brew.style to apply when accessing /print from /new without saving.

This commit is contained in:
G.Ambatte
2021-06-24 21:05:32 +12:00
parent d61fda9cff
commit 1f830b96b5

View File

@@ -181,7 +181,7 @@ const NewPage = createClass({
},
print : function(){
localStorage.setItem('print', this.state.brew.text);
localStorage.setItem('print', `<style>\n${this.state.brew.style}\n</style>\n\n${this.state.brew.text}`);
window.open('/print?dialog=true&local=print', '_blank');
},