diff --git a/README.md b/README.md
index c62349d..6ebee14 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,7 @@
# dss.web
Web UI for deepsouthsounds
+
+
+npm install
+bower install
+grunt serve
\ No newline at end of file
diff --git a/client/app/helpers/social.js b/client/app/helpers/social.js
index adb4d33..0294773 100644
--- a/client/app/helpers/social.js
+++ b/client/app/helpers/social.js
@@ -1,5 +1,7 @@
var helpers = helpers || {};
-function _getLink(url){
+function _getLink(url) {
+ if (url.startsWith('http'))
+ return url;
return window.location.protocol + "//" + (window.location.host + '/' + url).replace(/([^:]\/)\/+/g, '$1');
}
@@ -34,7 +36,7 @@ helpers.social = {
}
});
},
- postToTwitter: function(mix){
+ postToTwitter: function (mix) {
var url = "http://" + window.location.host + "/mixes/" + mix.slug;
var text = mix.title;
window.open("http://twitter.com/share?url=#{url}&text={#text}", "twitterwindow", "height=450, width=550, top=" +
diff --git a/client/index.html b/client/index.html
index 332c134..46c0957 100644
--- a/client/index.html
+++ b/client/index.html
@@ -74,11 +74,11 @@
-
+
diff --git a/package.json b/package.json
index a3d1e87..1c55ecc 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"express-session": "~1.0.2",
"grunt-injector": "^0.6.0",
"grunt-up": "^1.0.7",
+ "grunt-wiredep": "^3.0.1",
"jade": "~1.2.0",
"jit-grunt": "^0.9.1",
"lodash": "~3.10.1",
@@ -63,7 +64,6 @@
"grunt-rev": "~0.1.0",
"grunt-svgmin": "~0.4.0",
"grunt-usemin": "~2.1.1",
- "grunt-wiredep": "~1.8.0",
"jit-grunt": "^0.5.0",
"jshint-stylish": "~0.1.5",
"mustache-express": "^1.2.1",