提交 1127d67e 编写于 作者: M Matt Bierner

Fix checkjs errors

上级 b032e6b8
......@@ -6,6 +6,7 @@
(function () {
'use strict';
// @ts-ignore
const ipcRenderer = require('electron').ipcRenderer;
// state
......@@ -26,18 +27,12 @@
body.classList.add(initData.activeTheme);
}
/**
* @return {HTMLIFrameElement}
*/
function getActiveFrame() {
return document.getElementById('active-frame');
return /** @type {HTMLIFrameElement} */ (document.getElementById('active-frame'));
}
/**
* @return {HTMLIFrameElement}
*/
function getPendingFrame() {
return document.getElementById('pending-frame');
return /** @type {HTMLIFrameElement} */ (document.getElementById('pending-frame'));
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册