From: Cheng Zhao Date: Mon, 5 May 2014 08:46:25 +0000 (+0800) Subject: Linkify the docs in default_app. X-Git-Tag: v0.12.2~2^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f943f54ad541e19b571c0909e45b5e7a2c81c23d;p=electron.git Linkify the docs in default_app. --- diff --git a/atom/browser/default_app/index.html b/atom/browser/default_app/index.html index 6013948c..0194f582 100644 --- a/atom/browser/default_app/index.html +++ b/atom/browser/default_app/index.html @@ -47,6 +47,7 @@ font-size: 40px; line-height: 300px; text-align: center; + -webkit-user-select: none; } #holder.hover { border: 4px dashed #999; @@ -59,14 +60,16 @@ var execPath = require('remote').process.execPath; var command = execPath + ' path-to-your-app'; - var openWiki = function() { - require('shell').openExternal('https://github.com/atom/atom-shell/blob/master/docs/tutorial/quick-start.md'); - } - + document.onclick = function(e) { + e.preventDefault(); + if (e.target.tagName == 'A') + require('shell').openExternal(e.target.href); + return false; + }; document.ondragover = document.ondrop = function(e) { e.preventDefault(); return false; - } + };

Welcome to Atom Shell

@@ -80,8 +83,9 @@

The path-to-your-app should be the path to your own atom-shell - app, you can read the Quick Start guide - in atom-shell's docs on how to write one. + app, you can read the quick start + guide in atom-shell's docs + on how to write one.