aboutsummaryrefslogtreecommitdiff
path: root/winlib/SDL2-2.0.10/test/nacl/background.js
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2020-05-25 12:21:43 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2020-05-25 12:22:23 +0200
commit618078829cfd2b868ec2777ddfd22ed3a01c1843 (patch)
tree1a9007791d87a43383d299d70bf34108b4a4cb64 /winlib/SDL2-2.0.10/test/nacl/background.js
parent61a2a2c4e5877088bdc07c771c1fbd0ab902c086 (diff)
downloadlite-xl-618078829cfd2b868ec2777ddfd22ed3a01c1843.tar.gz
lite-xl-618078829cfd2b868ec2777ddfd22ed3a01c1843.zip
Add meson build configuration
Currently the editor will not work if it is not installed. There is also a caveat about the 'data' directory which is installed in the bin directory. This may work but does not seem ok because it is pollution a shared bin directory and the 'data' folder may not be unique to Lite.
Diffstat (limited to 'winlib/SDL2-2.0.10/test/nacl/background.js')
-rw-r--r--winlib/SDL2-2.0.10/test/nacl/background.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/winlib/SDL2-2.0.10/test/nacl/background.js b/winlib/SDL2-2.0.10/test/nacl/background.js
deleted file mode 100644
index 5c3b1b7c..00000000
--- a/winlib/SDL2-2.0.10/test/nacl/background.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-function makeURL(toolchain, config) {
- return 'index.html?tc=' + toolchain + '&config=' + config;
-}
-
-function createWindow(url) {
- console.log('loading ' + url);
- chrome.app.window.create(url, {
- width: 1024,
- height: 800,
- frame: 'none'
- });
-}
-
-function onLaunched(launchData) {
- // Send and XHR to get the URL to load from a configuration file.
- // Normally you won't need to do this; just call:
- //
- // chrome.app.window.create('<your url>', {...});
- //
- // In the SDK we want to be able to load different URLs (for different
- // toolchain/config combinations) from the commandline, so we to read
- // this information from the file "run_package_config".
- var xhr = new XMLHttpRequest();
- xhr.open('GET', 'run_package_config', true);
- xhr.onload = function() {
- var toolchain_config = this.responseText.split(' ');
- createWindow(makeURL.apply(null, toolchain_config));
- };
- xhr.onerror = function() {
- // Can't find the config file, just load the default.
- createWindow('index.html');
- };
- xhr.send();
-}
-
-chrome.app.runtime.onLaunched.addListener(onLaunched);