diff --git a/src/dark-mode-toggle-stylesheets-loader.js b/src/dark-mode-toggle-stylesheets-loader.js index cb052eb..cdb0477 100644 --- a/src/dark-mode-toggle-stylesheets-loader.js +++ b/src/dark-mode-toggle-stylesheets-loader.js @@ -14,23 +14,6 @@ * limitations under the License. */ -// @license © 2024 Google LLC. Licensed under the Apache License, Version 2.0. -/** - * Copyright 2024 Google LLC - * - * 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 - * - * https://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. - */ - // @license © 2024 Google LLC. Licensed under the Apache License, Version 2.0. (() => { const ELEMENT_ID = 'dark-mode-toggle-stylesheets'; @@ -44,7 +27,7 @@ try { mode = localStorage.getItem(STORAGE_NAME); } catch (e) { - return; + // Couldn't retrieve mode, user-agent-preferred style will be applied. } const lightCSSMediaRegex = /\(\s*prefers-color-scheme\s*:\s*light\s*\)/gi;