Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Oct 18, 2020
1 parent 45e9e2d commit cc46d81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions background/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { runtimeError_, getTabUrl, tabsGet, browserTabs, tabsCreate, browserSessions, browser_ } from "./browser"
import { contentPayload, cPort, needIcon_, reqH_, settings, set_cPort, set_needIcon_, set_visualWordsRe_ } from "./store"
import "./ui_css"
import {
framesForTab, indexFrame, findCPort, framesForOmni, OnConnect, isExtIdAllowed, getPortUrl, showHUD, complainLimits
} from "./ports"
Expand Down
3 changes: 2 additions & 1 deletion background/ui_css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const StyleCacheId_ = settings.CONST_.VerCode_ + ","

const loadCSS = (action: MergeAction, cssStr?: string): SettingsNS.MergedCustomCSS | void => {
if (action === MergeAction.virtual) {
return mergeCSS(cssStr!, MergeAction.virtual)
mergeCSS(cssStr!, MergeAction.virtual)
return
}
{
let findCSSStr: string | null | false
Expand Down
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ var Tasks = {
var exArgs = { nameCache: gulpUtils.loadNameCache("bg", cacheNames, getNameCacheFilePath),
nameCachePath: getNameCacheFilePath("bg") };
var deepcopy = require("deepcopy");
if (exArgs.nameCache.vars && exArgs.nameCache.props) {
if (!FORCED_NO_MINIFY && exArgs.nameCache.vars && exArgs.nameCache.props) {
let {vars: {props: vars}, props: {props: props}} = exArgs.nameCache;
var browser = getNonNullBuildItem("BTypes");
if ("$OnOther" in vars
Expand Down Expand Up @@ -941,6 +941,7 @@ function loadTerserConfig(reload) {
a.mangle = false;
a.format.beautify = true
a.format.indent_level = 2
a.compress.sequences = false
}
a.ecma = outputES6 ? 6 : 5
}
Expand Down

0 comments on commit cc46d81

Please sign in to comment.