fix handling of non-ascii characters in start path of local version

pull/223/head
nightwing 2015-11-17 17:38:09 +04:00
rodzic be39ded08a
commit 231bcc84d9
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -94,7 +94,7 @@
/*::dev::*/ }
// have to use this since new-instance windows have wrong root module path
var __dirname = unescape(document.baseURI).substr(
var __dirname = decodeURIComponent(document.baseURI).substr(
"file://".length + (process.platform == "win32" ? 1 : 0)
).replace(/\/*$/, "/local");
@ -109,7 +109,7 @@
var server = require(__dirname + "/server.js");
var windowManager = server.windowManager;
windowManager.registerWindow(win, unescape(/id=([^&#?=]+)/.exec(window.location)[1]));
windowManager.registerWindow(win, decodeURIComponent(/id=([^&#?=]+)/.exec(window.location)[1]));
var performance = window.performance;
var time = {

Wyświetl plik

@ -1,5 +1,6 @@
<!doctype html>
<html>
<meta charset="utf-8">
<!-- Node.js Context -->
<script>
var nwGui = require("nw.gui");