mirror of
https://github.com/mue/mue.git
synced 2026-06-11 19:18:57 +02:00
* refactor(files): Initial commit on experimental file structure * refactor(structure): New components system * refactor(structure): Tidy settings' components * Refactor(structure): Component exports and imports * refactor(settings): Use new component imports * feat: unified background.js script * fix(build): Partially, distributions still not ready * feat: critical error on noscript, light theme support for it * fix(background): Critical issue of code making every background #000 * refactor(welcome): Partition into different files + shared components - This took too long and destroyed my sanity --------- Co-authored-by: alexsparkes <turbomarshmello@gmail.com> Co-authored-by: alexsparkes <alexsparkes@gmail.com>
16 lines
387 B
JavaScript
16 lines
387 B
JavaScript
/* eslint-disable no-use-before-define */
|
|
/* eslint-disable no-undef */
|
|
if (typeof browser === "undefined") {
|
|
var browser = chrome;
|
|
}
|
|
|
|
browser.runtime.setUninstallURL('https://muetab.com/uninstall');
|
|
|
|
browser.runtime.onInstalled.addListener((details) => {
|
|
if (details.reason === 'install') {
|
|
browser.tabs.create({
|
|
url: browser.runtime.getURL('index.html'),
|
|
});
|
|
}
|
|
});
|