Commit 3fd0fc39 authored by PhoeniX's avatar PhoeniX

Open VK in browser

parent 70d3bb99
......@@ -201,12 +201,7 @@ Blocks.page = (function(){
vk.addEventListener('touchstart',ts);
vk.addEventListener('touchend',te);
vk.addEventListener('click',function(){
new MozActivity({
name: "copy",
data: {
text: "https://vk.com/"+user.screen_name
}
});
Interface.openLink("https://vk.com/"+user.screen_name,true);
});
var links = fullinfo.appendChild(document.createElement('div')), ttitle = document.createElement('div'), timg = document.createElement('img'), ls;
......
......@@ -333,8 +333,10 @@ Interface = {
};
return locker;
},
"openLink": function(link){
// todo: check link for vk / http(s)
"openLink": function(link,forceBrowser){
if (!forceBrowser) {
// todo: check link for vk / http(s)
}
new MozActivity({
name: "view",
data: {
......
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