summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/src/service/PrintService.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-31 12:15:40 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-31 12:17:18 +0200
commit3e624dc39966f54c6d418eee2e8141fc5c21f751 (patch)
treeaa5f0fa8498c2ad7f281295296f341aac7cc04ae /apps/twofactor_backupcodes/src/service/PrintService.js
parent91510d95f15b5b84482b5700b04d229db28fbdff (diff)
downloadnextcloud-server-3e624dc39966f54c6d418eee2e8141fc5c21f751.tar.gz
nextcloud-server-3e624dc39966f54c6d418eee2e8141fc5c21f751.zip
Bump js licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/twofactor_backupcodes/src/service/PrintService.js')
-rw-r--r--apps/twofactor_backupcodes/src/service/PrintService.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/twofactor_backupcodes/src/service/PrintService.js b/apps/twofactor_backupcodes/src/service/PrintService.js
index f0036201a45..2e73e62f525 100644
--- a/apps/twofactor_backupcodes/src/service/PrintService.js
+++ b/apps/twofactor_backupcodes/src/service/PrintService.js
@@ -1,3 +1,26 @@
+/**
+ * @copyright Copyright (c) 2016 John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @author Christoph Wurst <christoph@winzerhof-wurst.at>
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
export function print(data) {
const name = OC.theme.name || 'Nextcloud'
const newTab = window.open('', t('twofactor_backupcodes', '{name} backup codes', { name }))