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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user