mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
28 lines
530 B
Plaintext
28 lines
530 B
Plaintext
|
|
@import <Foundation/CPObject.j>
|
|
|
|
#include "Platform.h"
|
|
|
|
|
|
@implementation CPPlatform : CPObject
|
|
{
|
|
}
|
|
|
|
+ (void)bootstrap
|
|
{
|
|
#if PLATFORM(DOM)
|
|
var body = document.getElementsByTagName("body")[0];
|
|
|
|
body.innerHTML = ""; // Get rid of anything that might be lingering in the body element.
|
|
body.style.overflow = "hidden";
|
|
|
|
if (document.documentElement)
|
|
document.documentElement.style.overflow = "hidden";
|
|
#endif
|
|
|
|
[CPPlatformString bootstrap];
|
|
window.firstWindow = [[CPPlatformWindow alloc] _init];
|
|
}
|
|
|
|
@end
|