github.com/mssola/todo@v0.0.0-20181029153210-d25348dc3f48/public/javascripts/print.js (about) 1 /* 2 * Copyright (C) 2016-2017 Miquel Sabaté Solà <mikisabate@gmail.com> 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 */ 8 9 window.onload = function() { 10 if (window.print) { 11 window.print(); 12 } 13 }