修复了动态指令灰屏的问题

This commit is contained in:
dushixiang
2021-01-09 12:02:46 +08:00
parent 52beffd9c1
commit df65341193
7 changed files with 63 additions and 56 deletions

View File

@ -1,6 +1,6 @@
import React, {Component} from 'react';
import Guacamole from "guacamole-common-js";
import {prefix, server} from "../../common/constants";
import {server} from "../../common/constants";
class Playback extends Component {
@ -14,7 +14,7 @@ class Playback extends Component {
}
initPlayer(sessionId) {
var RECORDING_URL = `${server + prefix}/sessions/${sessionId}/recording`;
var RECORDING_URL = `${server}/sessions/${sessionId}/recording`;
var player = document.getElementById('player');
var display = document.getElementById('display');