Assign $windowNumber in index.html

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-08-27 17:09:53 -07:00
parent 64a0fd84a7
commit d20ba7171a
2 changed files with 1 additions and 2 deletions

View File

@@ -1,8 +1,6 @@
# This a weirdo file. We don't create a Window class, we just add stuff to
# the DOM window.
$windowNumber = window.location.params.windowNumber
Native = require 'native'
TextMateBundle = require 'text-mate-bundle'
TextMateTheme = require 'text-mate-theme'

View File

@@ -11,6 +11,7 @@
var pair = param.split("=")
window.location.params[pair[0]] = pair[1];
});
window.$windowNumber = window.location.params.windowNumber
var bootstrapScript = window.location.params.bootstrapScript;
if (bootstrapScript) require(bootstrapScript);
}