google-chrome-app

Checking a value in a nested JSON using Postman

拜拜、爱过 提交于 2021-02-04 06:14:37
问题 I have a nested JSON returned from an API that I am hitting using a GET request, in POSTMAN chrome app. My JSON looks like this "result": [ { "_id": "some_id", "name": "India", "code": "IN", "link": "http://www.india.info/", "closingTime": "2017-02-25T01:12:17.860Z", "openingTime": "2017-02-25T06:12:17.205Z", "image": "image_link", "status": "online", "serverStatus": "online", "games": [ { "_id": "some_game_id1", "name": "Cricket" }, { "_id": "some_another_id1", "name": "Baseball" }, { "_id":

<all_urls> get changed into \u003Call_urls> when uploading to the Chrome store

﹥>﹥吖頭↗ 提交于 2021-01-29 16:23:56
问题 I have an extension that works well on my local, the manifest has those configuration: "background": { "scripts": [ "js/tabCapture.js", "js/main.js" ], "persistent": false }, "permissions": [ "desktopCapture", "tabs", "activeTab", "<all_urls>", "identity" ], However, when uploading to Chrome store (successfully), I tried installing it but it didn't work any more. I checked the Extension tab and see no background page for my extension. Upon further investigation, I tried loading the extension

Open Chrome in a new window (Chrome app)

青春壹個敷衍的年華 提交于 2021-01-28 20:07:18
问题 I'm trying to create a chrome app that when i click on a button, it opens a new chrome window, at the moment it just opens a new tab. html: <html> <head> <script src="jquery-3.1.1.min.js"></script> <script src="script.js"></script> </head> <body> <button>Test</button> </body> </html> JS: $(document).ready(function() { $("button").click(function() { window.open( "https://www.google.com", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400" ); }); }); 回答1:

Detect Custom Protocol handler in chrome 86

守給你的承諾、 提交于 2021-01-27 16:39:43
问题 I have implemented a solution according to https://gist.github.com/aaronk6/d801d750f14ac31845e8 and it worked fine till chrome 85 .With latest chrome Update Onblur not detecting open protocol handler popup. Is there a way to identify Custom protocol registered in windows using Chrome 86 new version .The code i have implemented mentioned below and it's working fine for Firefox function LinkClicked() { launchUri($(this).attr("href"), function () { // SUCCESS APPLICATION INSTALLED }, function ()

How to use unlimitedStorage in chromeapp?

↘锁芯ラ 提交于 2021-01-06 10:48:52
问题 I am a beginner and trying to make a chrome app. My chrome app has persistent needs and will therefore use an indexed db. Also, I want the app to have unlimitedStorage. I am using chrome.storage.sync chrome.storage.local to set and get values. In my manifest file, when I use "unlimitedStorage" I get an error saying that sync ,local is undefined. But, in my manifest file, if I use "storage" i don't get any errors. Can anyone let me know how to do this? 回答1: "storage" is a permission which give

How to use unlimitedStorage in chromeapp?

折月煮酒 提交于 2021-01-06 10:46:55
问题 I am a beginner and trying to make a chrome app. My chrome app has persistent needs and will therefore use an indexed db. Also, I want the app to have unlimitedStorage. I am using chrome.storage.sync chrome.storage.local to set and get values. In my manifest file, when I use "unlimitedStorage" I get an error saying that sync ,local is undefined. But, in my manifest file, if I use "storage" i don't get any errors. Can anyone let me know how to do this? 回答1: "storage" is a permission which give

How to use unlimitedStorage in chromeapp?

瘦欲@ 提交于 2021-01-06 10:45:26
问题 I am a beginner and trying to make a chrome app. My chrome app has persistent needs and will therefore use an indexed db. Also, I want the app to have unlimitedStorage. I am using chrome.storage.sync chrome.storage.local to set and get values. In my manifest file, when I use "unlimitedStorage" I get an error saying that sync ,local is undefined. But, in my manifest file, if I use "storage" i don't get any errors. Can anyone let me know how to do this? 回答1: "storage" is a permission which give

Do background js scripts run on a different thread in Chrome OS apps?

萝らか妹 提交于 2020-05-16 04:04:34
问题 On the manifest for Chrome OS apps one must declare background js scripts. { "name": "Hello World!", "description": "My first Chrome App.", "version": "0.1", "manifest_version": 2, "app": { "background": { "scripts": ["background.js"] } }, "icons": { "16": "calculator-16.png", "128": "calculator-128.png" } } Are each of these running in their own thread? Do they block each other or the JS threads running on the app windows? 回答1: Chrome App windows are only "views", and are not living in