Skip to content

Commit

Permalink
修复获取环境参数导致无法查看录屏的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dushixiang committed Feb 20, 2021
1 parent 1b3e0ce commit f945557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ func SetupRoutes() *echo.Echo {
e.HideBanner = true
e.Logger = log.GetEchoLogger()

e.File("/", "web/build/index.html")
e.File("/asciinema.html", "web/build/asciinema.html")
e.File("/asciinema-player.js", "web/build/asciinema-player.js")
e.File("/asciinema-player.css", "web/build/asciinema-player.css")
e.File("/", "web/build/index.html")
e.File("/logo.svg", "web/build/logo.svg")
e.File("/favicon.ico", "web/build/favicon.ico")
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/session/Playback.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {Component} from 'react';
import Guacamole from "guacamole-common-js";
import server from "../../common/env";
import {server} from "../../common/env";
import {Button, Col, Row, Slider, Typography} from "antd";
import {PauseCircleOutlined, PlayCircleOutlined} from '@ant-design/icons';
import {Tooltip} from "antd/lib/index";
Expand Down

0 comments on commit f945557

Please sign in to comment.