Commit 9efc7ba2 by Jeffrey Phillips Committed by GitHub

Remove extraneous ContainerWebSocket factory (#3)

parent b78d4dc2
...@@ -6,4 +6,6 @@ bower_components ...@@ -6,4 +6,6 @@ bower_components
phantomjsdriver.log phantomjsdriver.log
.DS_Store .DS_Store
test/test-results.xml test/test-results.xml
npm-debug.log
{ {
"name": "origin-web-comon", "name": "origin-web-comon",
"version": "0.0.1", "version": "0.0.3",
"main": [ "main": [
"dist/origin-web-common.js" "dist/origin-web-common.js"
], ],
......
...@@ -2859,16 +2859,4 @@ angular.module('openshiftCommon') ...@@ -2859,16 +2859,4 @@ angular.module('openshiftCommon')
return $ws; return $ws;
}]; }];
}])
/* A WebSocket factory for kubernetesContainerTerminal */
.factory("ContainerWebSocket", ["API_CFG", "$ws", function(API_CFG, $ws) {
return function AuthWebSocket(url, protocols) {
var scheme;
if (url.indexOf("/") === 0) {
scheme = window.location.protocol === "http:" ? "ws://" : "wss://";
url = scheme + API_CFG.openshift.hostPort + url;
}
return $ws({ url: url, method: "WATCH", protocols: protocols, auth: {} });
};
}]); }]);
{ {
"author": "Red Hat", "author": "Red Hat",
"name": "origin-web-common", "name": "origin-web-common",
"version": "0.0.1", "version": "0.0.3",
"license": "Apache-2.0", "license": "Apache-2.0",
"description": "Library of common services and components for OpenShift Web Console.", "description": "Library of common services and components for OpenShift Web Console.",
"homepage": "https://github.com/openshift/origin-web-common.git", "homepage": "https://github.com/openshift/origin-web-common.git",
......
...@@ -76,16 +76,4 @@ angular.module('openshiftCommon') ...@@ -76,16 +76,4 @@ angular.module('openshiftCommon')
return $ws; return $ws;
}; };
})
/* A WebSocket factory for kubernetesContainerTerminal */
.factory("ContainerWebSocket", function(API_CFG, $ws) {
return function AuthWebSocket(url, protocols) {
var scheme;
if (url.indexOf("/") === 0) {
scheme = window.location.protocol === "http:" ? "ws://" : "wss://";
url = scheme + API_CFG.openshift.hostPort + url;
}
return $ws({ url: url, method: "WATCH", protocols: protocols, auth: {} });
};
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment