2021-03-30 06:31:59 +02:00
|
|
|
/**
|
|
|
|
* Welcome Page
|
|
|
|
* Belongs to LocalCDN (since 2020-02-26)
|
|
|
|
*
|
|
|
|
* @author nobody
|
|
|
|
* @since 2020-03-29
|
|
|
|
*
|
|
|
|
* @license MPL 2.0
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Welcome
|
|
|
|
*/
|
|
|
|
|
2024-04-28 08:10:21 +02:00
|
|
|
let welcome = {};
|
2021-03-30 06:31:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Private Methods
|
|
|
|
*/
|
|
|
|
|
|
|
|
welcome._onDocumentLoaded = function () {
|
2024-04-25 18:51:29 +02:00
|
|
|
if (!window.location.href.startsWith('moz-extension')) {
|
2021-03-30 06:31:59 +02:00
|
|
|
document.getElementById('chromium-banner').style.display = 'block';
|
|
|
|
}
|
2021-04-05 07:43:53 +02:00
|
|
|
document.getElementById('open-settings').addEventListener('mouseup', function () { chrome.runtime.openOptionsPage(); });
|
2021-03-30 06:31:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', welcome._onDocumentLoaded);
|