Commit 0f383b3f authored by Siddhant Sanyam's avatar Siddhant Sanyam

Fixed baseurl and __proto__

parent 4c5c32bd
...@@ -211,7 +211,7 @@ Document.states = { ...@@ -211,7 +211,7 @@ Document.states = {
} }
getCurrentDocument = function() { getCurrentDocument = function() {
var doc = JSON.parse(localStorage.getItem("currentDocument")); var doc = JSON.parse(localStorage.getItem("currentDocument"));
doc.__proto__ = JSONDocument.prototype; doc.prototype = JSONDocument.prototype;
return doc; return doc;
} }
setCurrentDocument = function(doc) {localStorage.setItem("currentDocument",JSON.stringify(doc));} setCurrentDocument = function(doc) {localStorage.setItem("currentDocument",JSON.stringify(doc));}
......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<base href="http://www.ungproject.com/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Script-Type" content="text/javascript" />
......
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