~vrruiz/unity-webapps-angrybirds/const-to-var

« back to all changes in this revision

Viewing changes to AngryBirds.user.js

  • Committer: Robert Bruce Park
  • Date: 2013-05-03 23:10:35 UTC
  • Revision ID: robert.park@canonical.com-20130503231035-v2ehrt4v8eswj3g7
Add gettext placeholder, whitespace cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// @include       http://chrome.angrybirds.com/*
3
3
// ==/UserScript==
4
4
 
 
5
// This placeholder gets munged with real data at build time.
 
6
const WebappsGettextDict = JSON.parse(unescape(
 
7
    "%7B%22GETTEXT%22%3A%22PLACEHOLDER%22%7D"
 
8
));
 
9
 
5
10
window.Unity = external.getUnityObject(1);
6
11
 
7
12
Unity.init({ name: "Angry Birds",
8
 
             domain: 'chrome.angrybirds.com',
9
 
             homepage: 'http://chrome.angrybirds.com',
 
13
             domain: 'chrome.angrybirds.com',
 
14
             homepage: 'http://chrome.angrybirds.com',
10
15
             iconUrl: "icon://unity-webapps-angry-birds",
11
16
             onInit: null });
12
 
 
13