Skip to content

Latest commit

 

History

History
 
 

hello-world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hello World

This is a starter application. It contains a basic manifest file with no additional permissions. The manifest denotes a background script, main.js, detailed below:

// Main.js
chrome.app.runtime.onLaunched.addListener(function() {
  chrome.app.window.create('index.html',
    {width: 500, height: 309});
});

This simply waits for the launch event for the application (chrome.app.runtime.onLaunched.addListener) and, at that point, creates a window using a basic HTML page, index.html, as the source.

Resources