mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Fix unused parameters
This commit is contained in:
@@ -100,7 +100,7 @@ function connectNative (application: string) {
|
||||
|
||||
socket = new WebSocket(WEBSOCKET_DAEMON_URL);
|
||||
|
||||
socket.addEventListener("open", ev => {
|
||||
socket.addEventListener("open", () => {
|
||||
// Send all messages in queue
|
||||
while (messageQueue.length) {
|
||||
const message = messageQueue.pop();
|
||||
|
||||
@@ -11,7 +11,7 @@ const UA_CHROME_LEGACY = "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.288
|
||||
const UA_SAFARI = "AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15";
|
||||
|
||||
|
||||
function getPlatformComponent (platform: string) {
|
||||
function getPlatformComponent (platform: string): string {
|
||||
switch (platform) {
|
||||
case "mac": return PLATFORM_MAC; break;
|
||||
case "win": return PLATFORM_WIN; break;
|
||||
@@ -31,6 +31,6 @@ export function getChromeUserAgent (
|
||||
return `${UA_PREFIX} (${platformComponent}) ${browserComponent}`;
|
||||
}
|
||||
|
||||
export function getSafariUserAgent (platform: string): string {
|
||||
export function getSafariUserAgent (): string {
|
||||
return `${UA_PREFIX} (${PLATFORM_MAC}) ${UA_SAFARI}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user