-
user2635541
google-chrome google-chrome-extension google-chrome-app
I have written a chrome app to work at a kiosk system which gets started by the –app-id command-line switch. Unfortunately it is crashing a very few times (like twice a day) and the crashes are non-repeatable. Now i am trying to ensure it will get restarted after crash. So i wrote a batch script which checks if chrome is running and will restart the app if it’s not.My problem is that if the app crashes it will become deactivated on chrome, so when the shortcut gets called, it only opens a brows
-
ddumont
google-chrome-app
2 issues here really, one that I’ve encountered before in another questions: Using dojo 1.8 in a packaged app (uncaught unload is not available in packaged apps)And another that has to do with fetching dojo template resources (html files) from inside the packaged app from a sandboxed frame.Let’s start with 1: As an update to the previous question link, the current status is that using the dojo parser in a sandboxed frame will throw an error and break dojo due to an exception thrown from an addEv
-
Damian
jquery google-chrome-app chrome-packaged-app
Using jQuery 1.10.2 and jQuery Mobile 1.3.2 I am trying to create a chrome packaged app with the following simple html…<!DOCTYPE html> <html> <body><div data-role=”page”><script async src=”events.js” type=”text/javascript”></script></div> </body> </html>There are two problems. The first is that jQuery will intercept the script tag loading events.js and makes the call xhr.open( s.type, s.url, s.async ); however s.async is false. Chrome packa
-
Bill Gradwohl
debugging google-chrome-app
I’m converting a standard browser based app that’s working fine to a chrome-app. Once the page loads up, it has already hit an error – Uncaught TypeError: Cannot call method ‘appendChild’ of null. This occurs after several hundred lines of JS have done their job but its the first time the code makes a reference to the document object, specifically document.getElementById(‘mainDiv’).appendChild(…).I can clearly see the div with the id=”mainDiv” in the debuggers elements tab. Yet, document.getE
-
Blynn
javascript google-chrome-extension google-chrome-app
I’m getting this error “Uncaught TypeError: Cannot call method ‘setBadgeText’ of undefined “This is my code below:This used to work in Chrome 27.0, but now with Chrome 29.0 it seems to have stopped functioning. I’m not sure if it’s this or the.. manifest.json file which loads this in the background.var DOCLIST_SCOPE = ‘https://docs.google.com/feeds’;var DOCLIST_FEED = DOCLIST_SCOPE + ‘/default/private/full/’;var docs = []; // In memory cache for the user’s entire doclist.var refreshRate = local
-
Mihai Parparita
javascript google-chrome google-chrome-extension eval google-chrome-app
I would like to create a package app chrome extension to allow the user to write and execute javascript code (like a javascript console).I would like to use the eval() function to execute the JS code.The classic javascript eval function throws an error when it’s called from a chrome extension:Uncaught Error: Code generation from strings disallowed for this context To use eval in a chrome extension people need to use a sandbox, but when I write the sandbox in the manifest I get this error:There w
-
AshleysBrain
javascript sockets google-chrome google-chrome-extension google-chrome-app
I’m trying to get UDP sockets working for a packaged app using Chrome Canary (currently version 25). I am pretty confused by the fact the UDP example here conflicts with the reference documentation here.The official example uses this line:chrome.socket.create(‘udp’, ‘127.0.0.1’, 1337, { onEvent: handleDataEvent }, …In Canary using this line results in the error:Uncaught Error: Invocation of form socket.create(string, string,integer, object, function) doesn’t match definitionsocket.create(stri
-
Josh Lee
google-chrome-app mathjax content-security-policy
I am trying to use MathJax in Chrome Packaged app. It is not loading at all giving the following error :Uncaught EvalError: Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: “default-src ‘self’ chrome-extension-resource:”.How can I make it work?EDITIT is showing this line to be the problem in the libraryvar CONSTRUCTOR = function () {return new Function (“return arguments.callee.Init.call(this,a
-
Rob W
javascript web-sql google-chrome-app
I am trying to use openDatabase with a Google Chrome app but the following error is displayed:Uncaught ReferenceError: openDatabase is not defined I also added permissions (unlimitedStorage) in manifest.json.
-
Garrett Innovations
json google-chrome-app
I am working on a chrome app and its basically done, however I am adding code to my customer’s website to have it determine if the app is installed on chrome or not.In order to do this I need to check for a file “manifest.json” is available for the app to determine if its installed or not.I am using the below code that I got from another posted question on here:function detectChromeExtension(extensionId, accesibleResource, callback){if (typeof(chrome) !== ‘undefined’){var xmlHttp = new XMLHttpRe
-
Mihai Parparita
google-chrome google-chrome-extension google-chrome-app
I’m trying to use the new Socket API for Chrome extensions, and I’m encountering a confusing error. The manifest for my sample app looks like this:{“name”:”Yet Another Socket App”,”version”:”0.0.1″,”manifest_version”:2,”permissions”:[“experimental”, “socket”],”app”:{“launch”:{“local_path”:”index.html”}} }The app is loading (i.e., no error alerts), but a warning appears beneath its entry in chrome://extensions: ‘socket’ is not allowed for specified package type (theme, app, etc.).Notes: index.ht
-
Jrop
file command-line-arguments google-chrome-app
I’m trying to write a Chrome packaged app that will eventually accept files as arguments from the command line, but I can’t figure out how to make it work. Here’s what I’m doing:manifest.json:… “file_handlers” : {“text” : {“types” : [ “*” ],”title” : “File Opener”} }, …my-background-page.js:chrome.app.runtime.onLaunched.addListener(function (launchData) {chrome.app.window.create(‘my-file.html’, { … }, function (win) {win.contentWindow.launchData = launchData;}); });(I expect launchData to
-
Mihai Parparita
google-chrome google-chrome-extension google-chrome-app
I am following the google chrome web app development on http://developer.chrome.com/trunk/apps/first_app.html and the web app is not launching. when i click on the app icon on the page it closes the tab. I have downloaded the sample apps and plugins from github but they too are not working when i look at the console i get this error, please not i have enabled experimental API’s in chrome://flags.Uncaught TypeError: Cannot read property ‘onLaunched’ of undefined I have updated my chrome browser t
-
Mister F
javascript google-chrome-app
I’m getting this weird error and I haven’t seen it anywhere else. When I try to call chrome.identity.getAuthToken, I get back undefined (which means an error occurred) and a chrome.runtime.lastError that says Oauth2: bad client id NON_NATIVE. I have no idea what that means (I put my Oauth client id into the manifest.json just like in the examples) and I haven’t seen this error anywhere else.
-
Kinlan
javascript html5 google-chrome-app
Given that Chrome’s Client Security Policy for packaged apps, in contrast to hosted ones, does NOT allow either inline script or inline events, requiring all JavaScript to be in separate files, there’s a bit of an issue when it comes to datetime controls here.countform.html:<!DOCTYPE html> <html lang=”en”><head><title>Countdown form</title><script type=”text/javascript” src=”countform.js”></script></head><body><form id=”countform” method=”