Skip to content

Commit 2a6296e

Browse files
committed
https://github.com/atom/atom-shell/blob/master/docs/api/frameless-window.md
Polymer/polymer#913 Directly running from source.
1 parent 724bf9f commit 2a6296e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

run.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
taskkill /f /t /im atom.exe
22
cd /d "%~dp0"
3-
call "%CD%\build\win32\atom-shell\atom"
3+
call "%CD%\build\win32\atom-shell\atom" "%CD%\src"
44
pause

src/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
<html>
22
<head>
33
<title>Node webkit + polymer example</title>
4+
<script src="components/webcomponentsjs/webcomponents.js">
45
<script src="components/platform/platform.js"></script>
56
<link rel="import" href="example-element/example-element.html">
67
</head>
7-
<body>
8+
<body style="-webkit-app-region: drag; background:transparent">
89
<div>In the body!</div>
910

1011
<example-element> </example-element>
1112

1213
<script>
1314
window.addEventListener('polymer-ready', function() {
14-
var exampleElementInst = document.querySelector('example-element');
15+
var exampleElementInst = document.querySelector('example-element');
1516
console.log("exampleElementInst",exampleElementInst);
1617
});
1718
</script>

0 commit comments

Comments
 (0)