Added viewsource.js and needed to change the name to viewSource.js

git-svn-id: svn://10.0.0.236/trunk@31186 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
matt%netscape.com
1999-05-12 00:17:22 +00:00
parent 524aed5470
commit b2f80b60a1

View File

@@ -1,20 +0,0 @@
var coreName;
function Startup1() {
// Generate unique name.
coreName = "ViewSource." + ( new Date() ).getTime().toString();
// Create and initialize the browser app core.
appCore = new BrowserAppCore();
appCore.Init( coreName );
appCore.setContentWindow(window.frames[0]);
appCore.setWebShellWindow(window);
appCore.setToolbarWindow(window);
// Get url whose source to view.
var url = document.getElementById("args").getAttribute("value");
// Load the source (the app core will magically know what to do).
XPAppCoresManager.Find( coreName ).loadUrl(url);
}