forked from Gitlink/forgeplus-react
issue
This commit is contained in:
parent
34312abc24
commit
e7d8a4f0cc
|
@ -481,7 +481,7 @@ class App extends Component {
|
||||||
this.setState({
|
this.setState({
|
||||||
mygetHelmetapi: undefined
|
mygetHelmetapi: undefined
|
||||||
});
|
});
|
||||||
document.title = "EduCoder";
|
document.title = "Forge";
|
||||||
var link = document.createElement('link'),
|
var link = document.createElement('link'),
|
||||||
oldLink = document.getElementById('dynamic-favicon');
|
oldLink = document.getElementById('dynamic-favicon');
|
||||||
link.id = 'dynamic-favicon';
|
link.id = 'dynamic-favicon';
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import React , { Component } from 'react';
|
import React , { Component } from 'react';
|
||||||
|
import { Spin } from 'antd';
|
||||||
import { Link , Route , Switch,withRouter } from 'react-router-dom';
|
import { Link , Route , Switch,withRouter } from 'react-router-dom';
|
||||||
|
|
||||||
import '../css/index.css'
|
import '../css/index.css'
|
||||||
|
@ -129,6 +130,7 @@ class Detail extends Component{
|
||||||
constructor(props){
|
constructor(props){
|
||||||
super(props);
|
super(props);
|
||||||
this.state={
|
this.state={
|
||||||
|
isSpin:false,
|
||||||
projectDetail:undefined,
|
projectDetail:undefined,
|
||||||
isManager:false,
|
isManager:false,
|
||||||
isReporter:false,
|
isReporter:false,
|
||||||
|
@ -162,10 +164,15 @@ class Detail extends Component{
|
||||||
|
|
||||||
|
|
||||||
componentDidMount=()=>{
|
componentDidMount=()=>{
|
||||||
// this.getUserInfo();
|
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidUpdate=(prevState)=>{
|
||||||
|
if(prevState.match.params.projectsId !== this.props.match.params.projectsId){
|
||||||
|
this.getDetail();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
getDetail=()=>{
|
getDetail=()=>{
|
||||||
const { projectsId } = this.props.match.params;
|
const { projectsId } = this.props.match.params;
|
||||||
|
@ -242,12 +249,18 @@ class Detail extends Component{
|
||||||
|
|
||||||
// fork项目
|
// fork项目
|
||||||
forkFunc=()=>{
|
forkFunc=()=>{
|
||||||
|
this.setState({
|
||||||
|
isSpin:true
|
||||||
|
})
|
||||||
const { project_id } = this.state;
|
const { project_id } = this.state;
|
||||||
const url = `/projects/${project_id}/forks.json`;
|
const url = `/projects/${project_id}/forks.json`;
|
||||||
axios.post(url).then(result=>{
|
axios.post(url).then(result=>{
|
||||||
if(result && result.data.status === 0){
|
if(result && result.data.status === 0){
|
||||||
this.props.history.push(`/projects/${result.data.id}/coders`);
|
this.props.history.push(`/projects/${result.data.id}/coders`);
|
||||||
this.props.showNotification(result.data.message);
|
this.props.showNotification(result.data.message);
|
||||||
|
this.setState({
|
||||||
|
isSpin:false
|
||||||
|
})
|
||||||
}else{
|
}else{
|
||||||
this.props.showNotification(result.data.message);
|
this.props.showNotification(result.data.message);
|
||||||
}
|
}
|
||||||
|
@ -278,7 +291,7 @@ class Detail extends Component{
|
||||||
|
|
||||||
render(){
|
render(){
|
||||||
|
|
||||||
const { projectDetail , watchers_count , praises_count , forked_count } = this.state;
|
const { projectDetail , watchers_count , praises_count , forked_count , isSpin } = this.state;
|
||||||
const url = this.props.history.location.pathname;
|
const url = this.props.history.location.pathname;
|
||||||
const urlArr= url.split("/");
|
const urlArr= url.split("/");
|
||||||
const urlFlag = (urlArr.length === 3);
|
const urlFlag = (urlArr.length === 3);
|
||||||
|
@ -290,207 +303,209 @@ class Detail extends Component{
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
<div className="detailHeader-wrapper">
|
<Spin spinning={isSpin}>
|
||||||
<div className="normal">
|
<div className="detailHeader-wrapper">
|
||||||
<div className="f-wrap-between mb20">
|
<div className="normal">
|
||||||
<p className="font-18 color-white df flex-1 lineH2 mt15" style={{alignItems:"center"}}>
|
<div className="f-wrap-between mb20">
|
||||||
{projectDetail && projectDetail.author && projectDetail.author.name}
|
<p className="font-18 color-white df flex-1 lineH2 mt15" style={{alignItems:"center"}}>
|
||||||
<span className="ml5 mr5">/</span>
|
{projectDetail && projectDetail.author && projectDetail.author.name}
|
||||||
<span className="hide-1 flex-1">
|
<span className="ml5 mr5">/</span>
|
||||||
<Link to={`/projects/${projectsId}/coders`} className="color-white">{ projectDetail && projectDetail.name }</Link>
|
<span className="hide-1 flex-1">
|
||||||
</span>
|
<Link to={`/projects/${projectsId}/coders`} className="color-white">{ projectDetail && projectDetail.name }</Link>
|
||||||
</p>
|
</span>
|
||||||
</div>
|
</p>
|
||||||
<div className="f-wrap-between">
|
</div>
|
||||||
<ul className="headerMenu-wrapper">
|
<div className="f-wrap-between">
|
||||||
<li className={(url.indexOf("coders")>-1 || urlFlag) ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/coders`,state}}><img alt="" src={img_1} width="18" />代码</Link></li>
|
<ul className="headerMenu-wrapper">
|
||||||
<li className={url.indexOf("orders")>-1 ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/orders`,state}}><img alt="" src={img_2} width="12" />工单{projectDetail&&projectDetail.issues_count===0?"":projectDetail&&projectDetail.issues_count===0?projectDetail.issues_count:""}</Link></li>
|
<li className={(url.indexOf("coders")>-1 || urlFlag) ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/coders`,state}}><img alt="" src={img_1} width="18" />代码</Link></li>
|
||||||
<li className={url.indexOf("merge")>-1 ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/merge`,state}}><img alt="" src={img_3} width="13" />合并请求{projectDetail&&projectDetail.pull_requests_count===0?"":projectDetail&&projectDetail.pull_requests_count===0?projectDetail.pull_requests_count:""}</Link></li>
|
<li className={url.indexOf("orders")>-1 ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/orders`,state}}><img alt="" src={img_2} width="12" />工单{projectDetail&&projectDetail.issues_count===0?"":projectDetail&&projectDetail.issues_count===0?projectDetail.issues_count:""}</Link></li>
|
||||||
<li className={url.indexOf("version")>-1 ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/version`,state}}><img alt="" src={img_4} width="16" />版本发布</Link></li>
|
<li className={url.indexOf("merge")>-1 ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/merge`,state}}><img alt="" src={img_3} width="13" />合并请求{projectDetail&&projectDetail.pull_requests_count===0?"":projectDetail&&projectDetail.pull_requests_count===0?projectDetail.pull_requests_count:""}</Link></li>
|
||||||
<li className={url.indexOf("trends")>-1 ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/trends`,state}}><img alt="" src={img_6} width="16" />动态</Link></li>
|
<li className={url.indexOf("version")>-1 ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/version`,state}}><img alt="" src={img_4} width="16" />版本发布</Link></li>
|
||||||
{
|
<li className={url.indexOf("trends")>-1 ? "active" : ""}><Link to={{pathname:`/projects/${projectsId}/trends`,state}}><img alt="" src={img_6} width="16" />动态</Link></li>
|
||||||
isManager &&
|
{
|
||||||
<li className={url.indexOf("setting")>0 ? "active" : ""}><Link to={`/projects/${projectsId}/setting`}><img alt="" src={img_7} width="19" />仓库设置</Link></li>
|
isManager &&
|
||||||
}
|
<li className={url.indexOf("setting")>0 ? "active" : ""}><Link to={`/projects/${projectsId}/setting`}><img alt="" src={img_7} width="19" />仓库设置</Link></li>
|
||||||
</ul>
|
}
|
||||||
<span className="df">
|
</ul>
|
||||||
<span className="detail_tag_btn">
|
<span className="df">
|
||||||
<a className="detail_tag_btn_name" onClick={()=>this.focusFunc(projectDetail && projectDetail.watched)}>
|
<span className="detail_tag_btn">
|
||||||
<img src={projectDetail && projectDetail.watched ? img_focused : img_focus} alt="" width="14px"/>
|
<a className="detail_tag_btn_name" onClick={()=>this.focusFunc(projectDetail && projectDetail.watched)}>
|
||||||
{projectDetail && projectDetail.watched ? '取消关注':'关注'}
|
<img src={projectDetail && projectDetail.watched ? img_focused : img_focus} alt="" width="14px"/>
|
||||||
</a>
|
{projectDetail && projectDetail.watched ? '取消关注':'关注'}
|
||||||
<span className="detail_tag_btn_count">{watchers_count}</span>
|
</a>
|
||||||
|
<span className="detail_tag_btn_count">{watchers_count}</span>
|
||||||
|
</span>
|
||||||
|
<span className="detail_tag_btn">
|
||||||
|
<a className="detail_tag_btn_name" onClick={()=>this.pariseFunc(projectDetail && projectDetail.praised)}>
|
||||||
|
<img src={projectDetail && projectDetail.praised ? img_parised : img_parise} width="13px" alt=""/>
|
||||||
|
{projectDetail && projectDetail.praised ? '取消点赞':'点赞'}
|
||||||
|
</a>
|
||||||
|
<span className="detail_tag_btn_count">{praises_count}</span>
|
||||||
|
</span>
|
||||||
|
<span className="detail_tag_btn">
|
||||||
|
<a className="detail_tag_btn_name" onClick={this.forkFunc}>
|
||||||
|
<img src={img_fork} alt="" width="10px"/>Fork</a>
|
||||||
|
<span className="detail_tag_btn_count">{forked_count}</span>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span className="detail_tag_btn">
|
</div>
|
||||||
<a className="detail_tag_btn_name" onClick={()=>this.pariseFunc(projectDetail && projectDetail.praised)}>
|
|
||||||
<img src={projectDetail && projectDetail.praised ? img_parised : img_parise} width="13px" alt=""/>
|
|
||||||
{projectDetail && projectDetail.praised ? '取消点赞':'点赞'}
|
|
||||||
</a>
|
|
||||||
<span className="detail_tag_btn_count">{praises_count}</span>
|
|
||||||
</span>
|
|
||||||
<span className="detail_tag_btn">
|
|
||||||
<a className="detail_tag_btn_name" onClick={this.forkFunc}>
|
|
||||||
<img src={img_fork} alt="" width="10px"/>Fork</a>
|
|
||||||
<span className="detail_tag_btn_count">{forked_count}</span>
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<Switch {...this.props}>
|
<Switch {...this.props}>
|
||||||
{/* 新建文件 */}
|
{/* 新建文件 */}
|
||||||
<Route path="/projects/:projectsId/coders/:branch/newfile/:path"
|
<Route path="/projects/:projectsId/coders/:branch/newfile/:path"
|
||||||
render={
|
render={
|
||||||
(props) => (<FileNew {...this.props} {...props} {...this.state}/>)
|
(props) => (<FileNew {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route path="/projects/:projectsId/coders/:branch/newfile"
|
<Route path="/projects/:projectsId/coders/:branch/newfile"
|
||||||
render={
|
render={
|
||||||
(props) => (<FileNew {...this.props} {...props} {...this.state}/>)
|
(props) => (<FileNew {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 标签列表 */}
|
{/* 标签列表 */}
|
||||||
<Route path="/projects/:projectsId/orders/tags"
|
<Route path="/projects/:projectsId/orders/tags"
|
||||||
render={
|
render={
|
||||||
(props) => (<TagList {...this.props} {...props} {...this.state}/>)
|
(props) => (<TagList {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/* 仓库设置 */}
|
{/* 仓库设置 */}
|
||||||
<Route path="/projects/:projectsId/setting"
|
<Route path="/projects/:projectsId/setting"
|
||||||
render={
|
render={
|
||||||
(props) => (<Setting {...this.props} {...props} {...this.state} getDetail={this.getDetail}/>)
|
(props) => (<Setting {...this.props} {...props} {...this.state} getDetail={this.getDetail}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/* 工单详情 */}
|
{/* 工单详情 */}
|
||||||
<Route path="/projects/:projectsId/orders/:orderId/detail"
|
<Route path="/projects/:projectsId/orders/:orderId/detail"
|
||||||
render={
|
render={
|
||||||
(props) => (<OrderDetail {...this.props} {...props} {...this.state}/>)
|
(props) => (<OrderDetail {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/* 里程碑 */}
|
{/* 里程碑 */}
|
||||||
<Route path="/projects/:projectsId/orders/Milepost"
|
<Route path="/projects/:projectsId/orders/Milepost"
|
||||||
render={
|
render={
|
||||||
(props) => (<OrderMilepost {...this.props} {...props} {...this.state}/>)
|
(props) => (<OrderMilepost {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/* 新建里程碑 */}
|
{/* 新建里程碑 */}
|
||||||
<Route path="/projects/:projectsId/orders/meilpost"
|
<Route path="/projects/:projectsId/orders/meilpost"
|
||||||
render={
|
render={
|
||||||
(props) => (<OrdernewMilepost {...this.props} {...props} {...this.state}/>)
|
(props) => (<OrdernewMilepost {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/*里程碑详情*/ }
|
{/*里程碑详情*/ }
|
||||||
<Route path="/projects/:projectsId/orders/:meilid/MilepostDetail"
|
<Route path="/projects/:projectsId/orders/:meilid/MilepostDetail"
|
||||||
render={
|
render={
|
||||||
(props) => (<MilepostDetail {...this.props} {...props} {...this.state}/>)
|
(props) => (<MilepostDetail {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/*修改里程碑*/}
|
{/*修改里程碑*/}
|
||||||
<Route path="/projects/:projectsId/orders/:meilid/meilpost"
|
<Route path="/projects/:projectsId/orders/:meilid/meilpost"
|
||||||
render={
|
render={
|
||||||
(props) => (<OrderupdateMilepost {...this.props} {...props} {...this.state}/>)
|
(props) => (<OrderupdateMilepost {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
||||||
{/* 新建工单 */}
|
{/* 新建工单 */}
|
||||||
|
|
||||||
<Route path="/projects/:projectsId/orders/new"
|
<Route path="/projects/:projectsId/orders/new"
|
||||||
render={
|
render={
|
||||||
(props) => (<OrderNew {...this.props} {...props} {...this.state}/>)
|
(props) => (<OrderNew {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 修改详情 */}
|
{/* 修改详情 */}
|
||||||
<Route path="/projects/:projectsId/orders/:orderId/updatedetail"
|
<Route path="/projects/:projectsId/orders/:orderId/updatedetail"
|
||||||
render={
|
render={
|
||||||
(props) => (<OrderupdateDetail {...this.props} {...props} {...this.state}/>)
|
(props) => (<OrderupdateDetail {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 复制详情 */}
|
{/* 复制详情 */}
|
||||||
<Route path="/projects/:projectsId/orders/:orderId/copyetail"
|
<Route path="/projects/:projectsId/orders/:orderId/copyetail"
|
||||||
render={
|
render={
|
||||||
(props) => (<OrdercopyDetail {...this.props} {...props} {...this.state}/>)
|
(props) => (<OrdercopyDetail {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 动态 */}
|
{/* 动态 */}
|
||||||
<Route path="/projects/:projectsId/trends"
|
<Route path="/projects/:projectsId/trends"
|
||||||
render={
|
render={
|
||||||
(props) => (<TrendsIndex {...this.props} {...props} {...this.state}/>)
|
(props) => (<TrendsIndex {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
||||||
{/* 代码Index */}
|
{/* 代码Index */}
|
||||||
<Route path="/projects/:projectsId/orders"
|
<Route path="/projects/:projectsId/orders"
|
||||||
render={
|
render={
|
||||||
(props) => (<OrderIndex {...this.props} {...props} {...this.state}/>)
|
(props) => (<OrderIndex {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
<Route path="/projects/:projectsId/merge/new"
|
<Route path="/projects/:projectsId/merge/new"
|
||||||
render={
|
render={
|
||||||
(props) => (<CreateMerge {...this.props} {...props} {...this.state}/>)
|
(props) => (<CreateMerge {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
<Route path="/projects/:projectsId/merge/:mergeId/UpdateMerge"
|
<Route path="/projects/:projectsId/merge/:mergeId/UpdateMerge"
|
||||||
render={
|
render={
|
||||||
(props) => (<UpdateMerge {...this.props} {...props} {...this.state}/>)
|
(props) => (<UpdateMerge {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
<Route path="/projects/:projectsId/merge/:mergeId/Messagecount"
|
<Route path="/projects/:projectsId/merge/:mergeId/Messagecount"
|
||||||
render={
|
render={
|
||||||
(props) => (<MessageCount {...this.props} {...props} {...this.state}/>)
|
(props) => (<MessageCount {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
<Route path="/projects/:projectsId/merge/:mergeId/MergeSubmit"
|
<Route path="/projects/:projectsId/merge/:mergeId/MergeSubmit"
|
||||||
render={
|
render={
|
||||||
(props) => (<MergeSubmit {...this.props} {...props} {...this.state}/>)
|
(props) => (<MergeSubmit {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route path="/projects/:projectsId/version/new"
|
<Route path="/projects/:projectsId/version/new"
|
||||||
render={
|
render={
|
||||||
(props) => (<NewVersionIndex {...this.props} {...props} {...this.state}/>)
|
(props) => (<NewVersionIndex {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
||||||
<Route path="/projects/:projectsId/version/:versionId/upversion"
|
<Route path="/projects/:projectsId/version/:versionId/upversion"
|
||||||
render={
|
render={
|
||||||
(props) => (<UpVersionIndex {...this.props} {...props} {...this.state}/>)
|
(props) => (<UpVersionIndex {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
||||||
<Route path="/projects/:projectsId/version"
|
<Route path="/projects/:projectsId/version"
|
||||||
render={
|
render={
|
||||||
(props) => (<VersionIndex {...this.props} {...props} {...this.state}/>)
|
(props) => (<VersionIndex {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
<Route path="/projects/:projectsId/merge"
|
<Route path="/projects/:projectsId/merge"
|
||||||
render={
|
render={
|
||||||
(props) => (<MergeIndexDetail {...this.props} {...props} {...this.state}/>)
|
(props) => (<MergeIndexDetail {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route path="/projects/:projectsId/coders"
|
<Route path="/projects/:projectsId/coders"
|
||||||
render={
|
render={
|
||||||
(props) => (<CoderRootIndex {...this.props} {...props} {...this.state}/>)
|
(props) => (<CoderRootIndex {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route path="/projects/:projectsId"
|
<Route path="/projects/:projectsId"
|
||||||
render={
|
render={
|
||||||
(props) => (<CoderRootIndex {...this.props} {...props} {...this.state}/>)
|
(props) => (<CoderRootIndex {...this.props} {...props} {...this.state}/>)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
</Switch>
|
</Switch>
|
||||||
|
</Spin>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -691,7 +691,7 @@ submittojoinclass=(value)=>{
|
||||||
this.setState({
|
this.setState({
|
||||||
mygetHelmetapi2: undefined
|
mygetHelmetapi2: undefined
|
||||||
});
|
});
|
||||||
document.title = "EduCoder";
|
document.title = "Forge";
|
||||||
var link = document.createElement('link'),
|
var link = document.createElement('link'),
|
||||||
oldLink = document.getElementById('dynamic-favicon');
|
oldLink = document.getElementById('dynamic-favicon');
|
||||||
link.id = 'dynamic-favicon';
|
link.id = 'dynamic-favicon';
|
||||||
|
|
|
@ -264,7 +264,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
||||||
this.setState({
|
this.setState({
|
||||||
mygetHelmetapi: undefined
|
mygetHelmetapi: undefined
|
||||||
});
|
});
|
||||||
document.title = "EduCoder";
|
document.title = "Forge";
|
||||||
var link = document.createElement('link'),
|
var link = document.createElement('link'),
|
||||||
oldLink = document.getElementById('dynamic-favicon');
|
oldLink = document.getElementById('dynamic-favicon');
|
||||||
link.id = 'dynamic-favicon';
|
link.id = 'dynamic-favicon';
|
||||||
|
|
Loading…
Reference in New Issue