From 69feb40075da0537ef8f5400007532f93ad08509 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 18 Feb 2021 12:28:57 +0100 Subject: [PATCH] add copyright headers --- scripts/logviewer/file.js | 17 ++++++++++++++++- scripts/logviewer/main.js | 16 ++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/scripts/logviewer/file.js b/scripts/logviewer/file.js index 11f4ef5a..64a8422b 100644 --- a/scripts/logviewer/file.js +++ b/scripts/logviewer/file.js @@ -1,3 +1,18 @@ +/* +Copyright 2020 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ export function openFile(mimeType = null) { const input = document.createElement("input"); @@ -33,4 +48,4 @@ export function readFileAsText(file) { }); reader.readAsText(file); return promise; -} \ No newline at end of file +} diff --git a/scripts/logviewer/main.js b/scripts/logviewer/main.js index 11ab7661..f22890fa 100644 --- a/scripts/logviewer/main.js +++ b/scripts/logviewer/main.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {tag as t} from "./html.js"; import {openFile, readFileAsText} from "./file.js";