Skip to content

Commit

Permalink
CS: Classic Offensive supports v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Poheart committed Jan 14, 2017
1 parent 8c8d3f6 commit dc637a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ var faceitHelper = {
joinServer: function(serverIP) {
setTimeout(function() {
var StartParameter;
if(faceitHelper.globalstate.user.currentGame == "csgo") {
if(faceitHelper.globalstate.user.currentGame == "csgo" || faceitHelper.globalstate.user.currentGame == "csco" ) {
StartParameter = "steam://rungame/730/76561202255233023/+connect%20" + serverIP;
} else {
StartParameter = "steam://connect/" + serverIP;
Expand Down Expand Up @@ -692,7 +692,7 @@ var faceitHelper = {
}, 1000);

var btnCopy = $('[clipboard]');
if(btnCopy.is(":visible") && btnCopy != null && faceitHelper.lobbyStats.getRoomGUID() && faceitHelper.globalstate.user.currentGame == "csgo") {
if(btnCopy.is(":visible") && btnCopy != null && faceitHelper.lobbyStats.getRoomGUID() && (faceitHelper.globalstate.user.currentGame == "csgo" || faceitHelper.globalstate.user.currentGame == "csco")) {
var serverIP = $('[ng-if="serverConnectData.active"] span[select-text]').text().replace("connect ", "");
faceitHelper.debug.log("Submitting server query to API with IP " + serverIP);
var timer = setInterval(function() {
Expand Down Expand Up @@ -989,7 +989,7 @@ var faceitHelper = {
.append( $('<i/>', {class: "icon-ic-social-steam"}))
.append(' FACEIT HELPER GROUP'));

if(faceitHelper.globalstate.get.user() == "MATCH" && faceitHelper.globalstate.user.currentGame == "csgo") {
if(faceitHelper.globalstate.get.user() == "MATCH" && (faceitHelper.globalstate.user.currentGame == "csgo" || faceitHelper.globalstate.user.currentGame == "csco")) {
$('.subpage-nav__list')
.append( $('<li/>', {class: "subpage-nav__list__item", style: "float: right", id: "liveServer"})
.append($('<a/>', { class: "subpage-nav__list__link", title: "API Powered by FACEIT HELPER"})
Expand Down

0 comments on commit dc637a9

Please sign in to comment.