small refactoring
This commit is contained in:
@@ -2,7 +2,7 @@ import { handleNewRandomAlias } from "./create-alias";
|
||||
import browser from "webextension-polyfill";
|
||||
|
||||
function generateDialogJS(message) {
|
||||
const content = `
|
||||
return `
|
||||
function showSLDialog() {
|
||||
let slDialog = document.createElement("div");
|
||||
slDialog.style.position = "fixed";
|
||||
@@ -28,8 +28,6 @@ function generateDialogJS(message) {
|
||||
|
||||
showSLDialog();
|
||||
`;
|
||||
|
||||
return content;
|
||||
}
|
||||
|
||||
function generateAliasHandlerJS(tab, res) {
|
||||
|
||||
@@ -8,7 +8,6 @@ import Utils from "../popup/Utils";
|
||||
|
||||
/**
|
||||
* Create random alias
|
||||
* @param {*} tab
|
||||
*/
|
||||
async function handleNewRandomAlias(currentUrl) {
|
||||
await reloadSettings();
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
import "./App.scss";
|
||||
import VueRouter from "vue-router";
|
||||
import Navigation from "./Navigation";
|
||||
import EventManager from "./EventManager";
|
||||
|
||||
import SplashScreen from "./components/SplashScreen";
|
||||
import Header from "./components/Header";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import EventManager from "./EventManager";
|
||||
|
||||
let router = null;
|
||||
|
||||
const PATH = {
|
||||
|
||||
Reference in New Issue
Block a user