Skip to content

Commit ab392f8

Browse files
committed
still refining empty content; alpha release
1 parent dede066 commit ab392f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bottom-tip",
3-
"version": "0.1.2-a2",
3+
"version": "0.1.2-a3",
44
"description": "A div for displaying console.log messages, with some styles",
55
"main": "lib/bottom-tip.js",
66
"scripts": {

src/bottom-tip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var _rendered = false;
7676
var _oldTree: VTree = null;
7777
var _rootNode: Element = null;
7878

79-
export function renderTip(target: HTMLDivElement, type: PanelKind, content: string = "") {
79+
export function renderTip(target: HTMLDivElement, type: PanelKind, content: string) {
8080
// console.debug(':debug:', type, content)
8181
var tree = h("div", { style: panelStyle(type, content) }, [
8282
h("div", { style: contentStyle(type) }, []),
@@ -109,5 +109,5 @@ export default function(type: PanelKind, content: string) {
109109
mountTarget = document.createElement("div");
110110
document.body.append(mountTarget);
111111
}
112-
renderTip(mountTarget, type, content);
112+
renderTip(mountTarget, type, content || "");
113113
}

0 commit comments

Comments
 (0)